Skip to content

Commit

Permalink
curl
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache committed Jan 2, 2020
1 parent 0d75824 commit 8bd2430
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions shell/curl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
## curl http2 2020-01-02
## http://www.aqzt.com
##email: [email protected]
##robert yu
##centos 6和centos 7

yum install -y bzip2 openssl openssl-devel libcurl

#wget https://github.com/nghttp2/nghttp2/releases/download/v1.40.0/nghttp2-1.40.0.tar.bz2
tar xvf nghttp2-1.40.0.tar.bz2
cd nghttp2-1.40.0
./configure
make
make install
cd ..

echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

#wget https://curl.haxx.se/download/curl-7.67.0.tar.gz
tar zxvf curl-7.67.0.tar.gz
cd curl-7.67.0
./configure --with-nghttp2=/usr/local --with-ssl
make
make install
cd ..
echo ok

echo "/usr/local/bin/curl -kv --http2 -I https://aqzt.com"

0 comments on commit 8bd2430

Please sign in to comment.