centos突然報wget、curl command not found,簡單查了下,之前好像也遇到過,總結一下
@
1.Wget command not found
#這個解決比較簡單,先刪后下載即可
yum remove wget -y
yum install wget -y
wget #然后就好了
2.curl command not found
#本來也打算按上面步驟走的,結果發現不行,要下載包重新安裝
wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
tar xvf curl-7.56.1.tar.gz
cd curl-7.56.1/
./configure -disable-shared
make && make install
curl -V #然后就好了