nginx-1.20.1.tar.gz(下載連結包含gcc、g 、pcre、libtool、nginx)
百度網盤下載:
連結: https://pan.baidu.com/s/1avQD-zGYVcj0ttRtnPNTIA 提取碼: 6yhi
(1)安裝gcc
rpm -Uvh *.rpm --nodeps --force
#(2)安裝g ##
rpm -Uvh *.rpm --nodeps --force
gcc -v
g++ -v
cd pcre-8.35 ./configure make make install
cd libtool-2.4.2 ./configure make make install
cd nginx-1.20.1 ./configure make make install
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -s stop (quit)
/usr/local/nginx/sbin/nginx -s reload
netstat -tunlp
netstat -tunlp grep
以上是Linux伺服器怎麼離線安裝nginx的詳細內容。更多資訊請關注PHP中文網其他相關文章!