centos 编译安装 curl

centos 编译安装 curl

下载地址

解压后进入目录

执行:

./configure --prefix=/usr/local/curl --with-openssl
make && make clean

# 配置环境变量
echo 'export CURL_HOME=/usr/local/curl' > /etc/profile.d/curl.sh
echo 'export PATH=${CURL_HOME}/bin:$PATH' >> /etc/profile.d/curl.sh
source /etc/profile
posted @ 2024-01-12 15:49  卑以自牧lq  阅读(155)  评论(0)    收藏  举报