tar -zxvf nginx-1.9.9.tar.gz
cd nginx-1.9.9
yum -y install pcre-devel
yum -y install openssl openssl-devel
./configure --prefix=/neea/nginx-1.9.9
make
make install
启动nginx
cd /neea/nginx-1.9.9/sbin
./nginx //启动nginx
发现没有 logs文件夹,新建文件夹,再启动,ok
在浏览器中输入:http://localhost验证nginx是否成功启动
查询nginx主进程号
ps -ef | grep nginx
停止nginx
pkill -9 nginx
tar -zxvf nginx-1.9.9.tar.gz
mv nginx-1.9.9 nginx
cd nginx
yum -y install pcre-devel
yum -y install openssl openssl-devel
./configure --prefix=/neea/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/neea/nginx/auto/lib/pcre/
./configure --prefix=/neea/conf/nginx --conf-path=/neea/nginx/nginx.conf --with-http_gzip_static_module
make
make install
启动nginx
cd /neea/nginx/sbin
./nginx //启动nginx
检查系统安装的ningx
find -name nginx
卸载系统原有的nginx(不用这个 用make clean)
yum remove nginx
清除
make clean