Linux安装Nginx并支持SSL
cd /home/softwareswget http://nginx.org/download/nginx-1.15.7.tar.gz
tar -zxvf nginx-1.15.7.tar.gz -C /home/
cd /home/nginx-1.15.7/
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-pcre
make
make install
常规操作
[root@localhost ~]# /usr/local/nginx/sbin/nginx 启动[root@localhost
~]# /usr/local/nginx/sbin/nginx -s stop 停止[root@localhost
~]# /usr/local/nginx/sbin/nginx -s reload 重新载入[root@localhost
~]# /usr/local/nginx/sbin/nginx -v 查看版本[root@localhost
~]# /usr/local/nginx/sbin/nginx -t 测试配置文件是否正常
以上是 Linux安装Nginx并支持SSL 的全部内容, 来源链接: utcz.com/z/513649.html