本站教程收集整理的这篇文章主要介绍了centos nginx,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。
1.下载??http://Nginx.org/en/download.html
2.解压? ?tar -zxvf xxxx.tar.gz
3.安装依赖
yum install gcc-c++
yum install pcre-devel
yum install zlib-devel
4.安装
便宜香港vps
./configure?–prefix=/opt/Nginx??–with-http_ssl_module
or
?sudo ./configure –prefix=/opt/Nginx? –with-openssl=/usr/bin/openssl
sudo make
sudo make install
5.服务
sudo vim /usr/lib/systemd/system/Nginx.service[Unit]Description=The Nginx http and reverse proxy serverAfter=network.target remote-fs.target nss-lookup.target[service]Type=forkingPIDFile=/opt/Nginx/logs/Nginx.pidExecStartPre=/usr/bin/rm -f /opt/Nginx/logs/Nginx.pidExecStartPre=/opt/Nginx/sbin/Nginx -tExecStart=/opt/Nginx/sbin/NginxExecReload=/bin/kill -s HUP $MAINPIDKillSignal=SIGQUITTimeoutStopSec=5Killmode=processPrivateTmp=true[Install]WantedBy=multi-user.target
@H_197_33@
本站总结
以上是本站教程为你收集整理的centos nginx全部内容,希望文章能够帮你解决centos nginx所遇到的程序开发问题。
如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。