标签:.gz tab star bsp src arc service dev 端口
1.先指定个文件存放位置 usr/local/src
2. 下载nginx, wget http://nginx.org/download/nginx-1.12.0.tar.gz
3.解压:tar zxf nginx......
4.进入到nginx目录下,不清楚如何操作可以查看帮助(./configure --help)
指定安装目录:./configure --prefix=/usr/local/nginx
此时会报未安装pcre,zlib类库,YUM找一下安装起来,
yum search pcre
yum install pcre pcre-devel 确认Y下载并安装
yum install zlib zlib-devel
成功后再回头安装NGINX
./configure --prefix=/usr/local/nginx
make && make install
此时安装成功,接下来要启动nginx,先去nginx安装目录下
(查看端口占用:netstar -tupln | grep 80)
关掉防火强 service iptables stop
cd /usr/local/nginx/sbin
标签:.gz tab star bsp src arc service dev 端口
原文地址:http://www.cnblogs.com/bing2017/p/7101291.html