CentOS 安装 curl,CentOS内部访问链接

[root@centos ~]# curl
-bash: curl: command not found
[root@centos ~]# cd /usr/local/src/
[root@centos src]# wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
[root@centos src]# tar xvf curl-7.56.1.tar.gz
[root@centos src]# rm -rf curl-7.56.1.tar.gz
[root@centos src]# cd curl-7.56.1
# 此处已添加选项:–disable-shared
[root@centos curl-7.56.1]# ./configure –disable-shared
[root@centos curl-7.56.1]# make && make install
[root@centos curl-7.56.1]# curl http://www.baidu.com

你可能感兴趣的:(安装入门,centos)