On Ubuntu servers, services are managed using systemctl, part of the systemd system and service manager. This guide explains how to start, stop, enable, disable, and monitor services on Ubuntu servers.
sudo systemctl status nginx
This shows whether the service is running, stopped, or failed.
sudo systemctl start nginx
This starts the service immediately.
sudo systemctl stop nginx
This stops the service immediately.
sudo systemctl restart nginx
This restarts the service, useful after configuration changes.
sudo systemctl reload nginx
This reloads the service configuration without stopping it.
sudo systemctl enable nginx
This ensures the service starts automatically when the server boots.
sudo systemctl disable nginx
This prevents the service from starting automatically at boot.
systemctl list-units --type=service
This displays all active services on the system.
Note: HostPalace servers use systemd for service management, making it easy to control applications and ensure uptime.