The following takes the sshd service as an example
systemctl enable sshd.service //Let the sshd service start on boot
systemctl disable sshd //Do not allow the boot to start, but do not add .service
systemctl status sshd //View start and stop status
systemctl stop sshd //stop service
systemctl start sshd //Start service
systemctl restart sshd //Restart the service
systemctl is-enabled sshd //Check whether the service starts automatically after booting
The following shows enabled, the service is self-starting at boot
[root@localhost ~]# systemctl is-enabled sshd
enabled
For the specific introduction of other systemctl, please refer to the introduction
of systemd service in linux.