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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-11-11 15:09:38 | 显示全部楼层 |阅读模式
运行ansible前,会出现一下Warning。5 I/ R5 t9 M) n5 ^: ~! W

/ c0 |/ J1 D" k. l [WARNING]: The version of gmp you have installed has a known issue regarding
+ E( J/ F9 f. V1 Gtiming vulnerabilities when used with pycrypto. If possible, you should update7 [0 F. U  K+ d- \
it (i.e. yum update gmp).
7 A; L" p# P* j7 ]$ Z8 S: b/ m# R
( M7 g$ V" `8 \) c1 e1 N0 r
% m4 O1 w0 {% d. q6 b9 w$ k3 w; k% H) k3 t4 s
解决方法:
0 r4 I3 G; ?0 P  y
2 _" {) n' B' L 忽略下输出   
9 q2 i1 |9 d2 l9 `" B
1 L1 {( `( ^  ^# \4 V; Ecp  /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py{,.bak}! U: N4 s( ?& e% w$ w  o# E
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.py
- f. p0 A4 f: V6 t2 Yperl -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
: V3 _7 @" M) h7 W# }4 Q* M7 L; a) G6 ?* h' Q+ H# a8 A; }( i
* q9 L* Z6 Y* P0 r6 x8 i/ n( X" ^$ p

! L( k" [0 F+ M+ A) z9 ?* Jcp /usr/lib64/python2.7/numbers.py{,.bak}
  f) @2 @- P! w' i% u2 [! ? perl -p -i -e "s/^(if_fastmath is not None .*:)/#\1/" /usr/lib64/python2.7/numbers.py$ I. Q2 d+ |' D- m9 ]" S# @- q- G  j
perl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.7/numbers.py
! Y: F7 |0 u/ O5 j* \9 M  X0 t0 ~/ l; e
9 b$ R- Z4 P8 S) _
* x2 y7 j7 i3 |( u
问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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