标签:tables 防火 防火墙 inf status nginx安装 bubuko div nbsp
切换到进入的解压缩目录
[root@iz2zecue91mx9mhsl26o1fz nginx-1.14.0]# pwd
/root/test/nginx-1.14.0
[root@iz2zecue91mx9mhsl26o1fz nginx-1.14.0]#
useradd -s /sbin/nologin -M www
./configure --prefix=/app/nginx-1.14.0 --user=www --group=www --with-http_stub_status_module --with-http_ssl_module
make make install
启动nginx (端口号80)
[root@iz2zecue91mx9mhsl26o1fz nginx-1.14.0]# /app/nginx-1.14.0/sbin/nginx 查看端口号是否开启 lsof -i:80
报错解决:
需要XX library 那么 就 yum install 库小写 +-devel #报错1 #./configure: error: the HTTP rewrite module requires the PCRE library. yum install pcre-devel -y #报错2 #./configure: error: SSL modules require the OpenSSL library. yum install openssl-devel -y
标签:tables 防火 防火墙 inf status nginx安装 bubuko div nbsp
原文地址:https://www.cnblogs.com/wanghuaqiang/p/9346214.html