ubuntu enable/disable service

Start/stop/restart …. using `sudo service`

sudo service <service_name> start|stop|restart

sudo service nginx start

Start/stop/restart… user `sudo systemctl`

sudo systemctl start|stop|restart <service_name>

sudo systemctl start nginx

Enable or disable auto run on boot

sudo systemctl enable|disable <service_name>

sudo systemctl disable apache2
Liked it? Take a second to support nhancv on Patreon!

Leave a Reply

Your email address will not be published.Required fields are marked *