服务器nginx安装

环境 centos7.6
 
nginx 安装
 
1、下载源码包nginx1.17.1
2、解压,进入到解压后的目录
3、
./configure --prefix=/home/user1/study/soft/nginx --sbin-path=/home/user1/study/soft/nginx/sbin/nginx --conf-path=/home/user1/study/soft/nginx/config/nginx.conf --error-log-path=/home/user1/study/soft/nginx/logs/error.log --pid-path=/home/user1/study/soft/nginx/logs/nginx/pid --http-log-path=/home/user1/study/soft/nginx/logs/access.log
 
4、make -j
 
5、make install

原文地址:https://www.cnblogs.com/linst/p/11182576.html