1.上传jar包
2.
yum install -y gcc gcc-c++ make openssl-devel pcre-devel
3.tar zxvf nginx-1.12.1.tar.gz
4.cd nginx-1.12.1
5./configure --prefix=/usr/local/nginx && make -j 2 && make install
6.cd /usr/local/nginx/sbin
7./nginx
8.开iptables 80,443
---------------------------------------------------
开通https服务:
1.进入nginx解压目录
2.yum -y install openssl openssl-devel
3./configure --with-http_ssl_module
4.make
5.cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
6.cp objs/nginx /usr/local/nginx/sbin/nginx
7./usr/local/nginx/sbin/nginx -t
8./usr/local/nginx/sbin/nginx -s reload (不停服务)
posted on 2018-08-16 16:33
长春语林科技 阅读(184)
评论(0) 编辑 收藏 所属分类:
linux