安装nginx
cd /usr/local/src/
wget http://nginx.org/download/nginx-1.6.2.tar.gz
tar zxvf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --prefix=/usr/local/nginx --with-pcre
make
make install
启动nginx:
/usr/local/nginx/sbin/nginx
注意:nginx没有启动脚本,需要自己手动编写
时间: 2024-10-06 16:13:40