LNMP 1.2 Nginx编译安装

Nginx官网是:nginx.org

下载稳定版本 

cd /usr/local/src
wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar zxvf nginx-1.8.0.tar.gz

编译安装

cd nginx-1.8.0
./configure --prefix=/usr/local/nginx --with-pcre
make
make install

启动

/usr/local/nginx/sbin/nginx

 

posted @ 2015-12-28 22:26  dennyLinux  阅读(157)  评论(0编辑  收藏  举报