add systemd to linux basics
This commit is contained in:
parent
6dc03e437f
commit
8205d28d7a
@ -81,3 +81,13 @@ Make sure to allow SSH before enabling the firewall, otherwise you will be locke
|
|||||||
- Deny a port: `sudo ufw deny <port>`
|
- Deny a port: `sudo ufw deny <port>`
|
||||||
- Allow a service: `sudo ufw allow <service>`
|
- Allow a service: `sudo ufw allow <service>`
|
||||||
- Deny a service: `sudo ufw deny <service>`
|
- Deny a service: `sudo ufw deny <service>`
|
||||||
|
|
||||||
|
## Service Management (Systemd)
|
||||||
|
|
||||||
|
- Start a service: `sudo systemctl start <service>`
|
||||||
|
- Stop a service: `sudo systemctl stop <service>`
|
||||||
|
- Check the status of a service: `sudo systemctl status <service>`
|
||||||
|
- Restart a service: `sudo systemctl restart <service>`
|
||||||
|
- Enable a service (start on boot): `sudo systemctl enable <service>`
|
||||||
|
- Disable a service (stop on boot): `sudo systemctl disable <service>`
|
||||||
|
- Reload a service: `sudo systemctl reload <service>`
|
||||||
|
Loading…
Reference in New Issue
Block a user