centos常用运维命令

systemctl常用

文件名:**.service

目录:/lib/systemd/system/

目录:/usr/lib/systemd/system/

systemctl daemon-reload

systemctl status ***.service

systemctl restart

[Unit]
Description=AppDescription
[Service]
WorkingDirectory=WorkingDirector
ExecStart=WorkingDirectory/execfile
Restart=alwaysRestartSec=1
ExecReload=/bin/kill -s HUP $MAINPID
[Install]
WantedBy=multi-user.target
posted @ 2024-06-13 15:52  菊花茶  阅读(9)  评论(0编辑  收藏  举报