1、申请证书 https://httpsok.com/console/dashboard?p=4m93
2、安装nginx
wget --no-check-certificate https://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx -y
yum update curl -y
yum install crontabs -y
将配置文件放到/etc/nginx/conf.d下面
配置说明,只需要改域名、证书名和代理的IP
nginx.conf 下的http里 加一行脚本 client_max_body_size 1000M;
3、运行脚本
curl -s https://get.httpsok.com/ | bash -s id(申请到的)
4、只能手动启动nginx,自动启会报权限错,得空再弄
直接命令行 nginx