1.nginx下载:
https://github.com/wangfajun/dev-tools/blob/master/nginx-1.17.8.tar.gz
2.解压:
tar xf nginx-1.17.8.tar.gz
3.安装
cd nginx-1.17.8 ./configure --prefix=/usr/local/nginx
make & make install
4.启动
./usr/local/nginx/sbin/nginx
5.查看是否已启动,如下:
1.nginx下载:
https://github.com/wangfajun/dev-tools/blob/master/nginx-1.17.8.tar.gz
2.解压:
tar xf nginx-1.17.8.tar.gz
3.安装
cd nginx-1.17.8 ./configure --prefix=/usr/local/nginx
make & make install
4.启动
./usr/local/nginx/sbin/nginx
5.查看是否已启动,如下: