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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2019-11-11 15:09:38 | 显示全部楼层 |阅读模式
运行ansible前,会出现一下Warning。
0 ?3 k8 @/ v/ }7 |) k7 o$ r, ?  S8 n8 y6 w  y. ?/ T5 U
[WARNING]: The version of gmp you have installed has a known issue regarding
5 A+ p3 P! H8 Y# utiming vulnerabilities when used with pycrypto. If possible, you should update' a/ m  D4 X4 u4 Q, e; B1 C3 f
it (i.e. yum update gmp).# i2 N" e7 J( A! J
! m1 A4 T$ k& W( \( O

* ~8 c) |5 L2 i5 X! N; `5 ^( Z9 B* C& I
解决方法:+ D* j$ G3 E! v0 H
) j3 V: u% Q( G! i
忽略下输出   
$ p8 X  B0 k% O" }! `6 U6 \3 @, D+ h- j- ~3 ~4 i- r4 o+ s: N
cp  /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py{,.bak}
. f  K" K4 e$ k 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
# h7 B) D  n) s: x9 n+ M* ]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
. J' j' K! e' ?. d9 J
* i" o  ?" N* m6 _, u4 I" M/ U' _- J/ j% @2 i3 _! |
! o4 E) ~( ^4 C5 ]; ^  A9 v
cp /usr/lib64/python2.7/numbers.py{,.bak}
7 m6 @$ A% [$ x( q: C/ {$ x perl -p -i -e "s/^(if_fastmath is not None .*:)/#\1/" /usr/lib64/python2.7/numbers.py
4 c+ v$ V& F5 ^9 k  j; P) jperl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.7/numbers.py
2 c3 l0 K0 b( @
/ w/ A. p2 u2 Z+ G; s/ F
# m, [0 q' b4 S# P
8 N# n( o( ^' E+ b+ i1 c 问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 05:31 , Processed in 0.022280 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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