linux下访问url命令
1.curl命令并显示出源码curlhttp://127.0.0.1:90962、执行效果
·
1.curl命令并显示出源码
curl http://127.0.0.1:9096
2、执行效果
3、curl的安装
[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
更多推荐
已为社区贡献7条内容
所有评论(0)