服务器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

posted @ 2019-07-13 23:14  微风星宇  阅读(192)  评论(0编辑  收藏  举报