nginx 启动不起来就手动指定下他的nginx.conf

ssl 过期了; 用certbot-auto 重新生成了个,结果启动nginx  启动不起来,所以写了这个脚本

#!/bin/bash

# 停止nginx
/usr/local/nginx/sbin/nginx -s stop

# 续签
# --force-renew 强制更新
/home/gly/certbot-auto renew --force-renew

# 启动nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

你可能感兴趣的:(SSL&Nginx)