1 Answer
10
# Start/stop service
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
# Enable/disable at boot
sudo systemctl enable nginx
sudo systemctl disable nginx
# Check status
sudo systemctl status nginx
# List all services
sudo systemctl list-units --type=service
# Check logs
sudo journalctl -u nginx -f
H
Bronze
•
565 rep
Your Answer
You need to be logged in to answer questions.
Log In to Answer