nginx安装还是比较容易的,这里简单记录下
1. 下载
wget http://nginx.org/download/nginx-1.15.0.tar.gz
2. 编译安装
指定编译产出路径,否则默认在 /usr/local/nginx
cd nginx-1.15.0
./configure --prefix=/home/local/nginx-1.15.0
make && make install
3. 启动
cd nginx-1.15.0
sbin/nginx -c conf/nginx.conf
网友评论