在修改nginx配置文件后,可以通過以下兩種方式使配置生效:
sudo systemctl reload nginx
sudo systemctl restart nginx
無論選擇哪種方式,都需要具有足夠的權限來執行這些操作。在使用sudo命令時,請確保您具有sudo權限。