Prerequisites
Before enabling services on boot, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
Enable a Service
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
sudo systemctl enable nginx
Check if Service is Enabled
sudo systemctl is-enabled nginx
Disable Service on Boot
sudo systemctl disable nginx
List All Enabled Services
systemctl list-unit-files --type=service | grep enabled
✅ Service will now start automatically on boot.