找回密码
 注册
查看: 4108|回复: 0

ansible运行时出现warning,取消waring的办法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-11-11 15:09:38 | 显示全部楼层 |阅读模式
运行ansible前,会出现一下Warning。4 x/ Q2 k$ r2 {$ L  j( a
4 Z! w3 f! `, A
[WARNING]: The version of gmp you have installed has a known issue regarding. c# l; b4 G% q1 K! r2 Z) l
timing vulnerabilities when used with pycrypto. If possible, you should update
; w& p/ T; X7 Sit (i.e. yum update gmp).0 L+ B! P2 V& H; a, h+ J
0 G1 H7 J) V4 v3 c

( w" W9 v6 z! ?# E) Q" l: Q- b  G: T
解决方法:
$ g( U! ]: m0 F/ D4 m: S9 E$ q" g! P; ~& \1 I- `; T' ?! Z( P
忽略下输出   
) G. N" t3 m+ _- ?5 [0 G7 d% c7 U/ ~
$ ~1 N- }- q* ?) H) }  ucp  /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py{,.bak}
& t% e# ]  F3 h* Q2 l perl -p -i -e "s/^(if _fastmath is not None .*:)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py7 M8 y. M0 v( V  X2 f) C: S: i
perl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py
4 G( j% e7 [0 h0 G) D
" t* ]- X7 j: N, q: M5 {% f
. D% e: }: j8 O8 H2 E) m/ [* o
) ?; e- T+ s0 D+ G! ?) Ucp /usr/lib64/python2.7/numbers.py{,.bak}
, F/ a3 q9 h( X9 F, d9 ] perl -p -i -e "s/^(if_fastmath is not None .*:)/#\1/" /usr/lib64/python2.7/numbers.py9 d! z! @* Y8 y
perl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.7/numbers.py$ E2 \8 d5 W/ `6 d% }% X0 q- R
* o4 W7 R) A; x: @" S; K/ k
! s  M" ~6 i% `7 K& _' x

4 Q3 ?2 f) r6 p. G: m9 W, o# I 问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:27 , Processed in 0.022649 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表