若有,如何进行?
发布于 2018-05-10 21:01:21
配置文件将在nginx启动时加载,之后所做的更改将不会加载,直到您重新启动nginx或告诉它重新读取它的配置文件。
# Restarts nginx using systemd (which will reload the configuration)
systemctl restart nginx
# Reload configuration without shutting down nginx
nginx -s reload
# or with systemd
systemctl reload nginx
# Test configuration without loading it
nginx -t您可以在nginx documentation中找到有关这方面的更多信息。
https://stackoverflow.com/questions/50272347
复制相似问题