centos 离线安装nginx

下载对应压缩包http://nginx.org/download/

上次服务器并解压

[root] tar -zxvf nginx-1.2.0.tar.gz 

[root] cd nginx-1.20.0

[root] mkdir /usr/local/nginx

[root] ./configure --prefix=/usr/local/nginx
[root] make && make install

启动

[root] cd /usr/local/nginx/sbin/
[root] ./nginx

 

posted @ 2018-08-23 16:19  JanWong  阅读(152)  评论(0编辑  收藏  举报