-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |