systemd/xxx.service
将此文件复制到/usr/lib/systemd/system/目录
赋予可执行权限,chmod +x xxx.service
启动服务:systemctl start xxx.service
停止服务:systemctl stop xxx.service
重启服务:systemctl restart xxx.service
查看服务:systemctl status xxx.service
加入开机启动:systemctl enable xxx.service
禁止开机启动:systemctl disable xxx.servie
重载服务:systemctl reload xxx.service