2023-05-29 15:48:40 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -x
|
|
|
|
|
|
2024-02-13 21:16:06 +08:00
|
|
|
killall -9 openresty
|
|
|
|
|
#openresty -s stop
|
2023-05-29 15:48:40 +08:00
|
|
|
certbot renew
|
2024-02-13 21:16:06 +08:00
|
|
|
#nginx -s stop
|
|
|
|
|
killall -9 nginx
|
2023-05-29 15:48:40 +08:00
|
|
|
openresty
|
|
|
|
|
|
2024-02-13 21:17:36 +08:00
|
|
|
# crontab里面的命令:
|
|
|
|
|
# 0 1 * * * su alchemy -c "sudo /home/alchemy/resty_functions/renew_cert.sh"
|