🔹 Nginx (System Service)
Start
sudo systemctl start nginx
Start Nginx service.
Stop
sudo systemctl stop nginx
Stop Nginx.
Restart
sudo systemctl restart nginx
Restart Nginx (stop + start).
Reload (no downtime)
sudo systemctl reload nginx
Reload config safely.
Check status
sudo systemctl status nginx
See if Nginx is running.
Test config
sudo nginx -t
Check config before reload/restart.
🔹 Laravel Valet (Nginx managed by Valet)
Start Valet
valet start
Starts Nginx, PHP, DnsMasq.
Stop Valet
valet stop
Stops all Valet services.
Restart Valet
valet restart
Restart everything.
Restart only Nginx
valet restart nginx
Reload config
valet reload
Reload without full restart.
Check status
valet status
Diagnose issues
valet diagnose
Top comments (0)