要重啟nginx,可以使用以下方法之一:
sudo systemctl restart nginx
sudo nginx -s reload
這將使用nginx的master進程重新加載配置文件并重啟nginx。
無論使用哪種方法,重啟后會重新加載nginx的配置文件,并使新的配置生效。