Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows下证书续签成功后自动重启nginx.exe载入新的证书 #2

Open
dylanbai8 opened this issue Jul 13, 2019 · 3 comments
Open

Comments

@dylanbai8
Copy link
Owner

dylanbai8 commented Jul 13, 2019

以 phpStudy20161103 为例:

命令行 CMD 模式下 加入以下参数

--script "C:\phpStudy\reload.bat"

可视化 UI 模式下 第12步骤 按照提示操作

C:\phpStudy\reload.bat

@echo off
cd C:\phpStudy\nginx
nginx.exe -s reload
exit

参考文档:

https://www.jianshu.com/p/01f3626cf25d

@dylanbai8
Copy link
Owner Author

dylanbai8 commented Jul 13, 2019

向bat传递参数

--script "reload.bat" --scriptparameters "参数1 参数2 参数3"

--script "reload.bat" --scriptparameters "httpsacme-v01.api.letsencrypt.org C:\wwwroot\sslroot www.mydomain.com"

@dylanbai8
Copy link
Owner Author

如果不需要传递参数

命令行 CMD 模式下 忽略 --scriptparameters 即可

可视化 UI 模式下 第12步骤 填写bat文件路径后 下一步填写传递参数 忽略即可

@dylanbai8
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant