curl安装, 使它能够使用http2

首先需要安装nghttp2,然后进入curl的安装目录cd ../curl-7.46.0/

#./configure --with-nghttp2=/usr/local    //--with-ssl

#make

#make install

#echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf

#ldconfig

#curl --version

Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2

你可能感兴趣的:(linux)