赞
踩
/etc/systemd/system/
读取配置文件,但是,里面存放的大部分文件都是符号链接,指向目录 /usr/lib/systemd/system/
(即 /lib/systemd/system
),真正的配置文件存放在那个目录Restart=always
,systemctl enable 命令相当于激活开机启动激活服务:
systemctl start {}.service
停止服务:
systemctl stop {}.service
重启服务:
systemctl restart {}.service
重新读取配置:
systemctl reload {}.service
查看服务运行状态:
systemctl status {}.service
检查服务是否配置为自动启动:
systemctl is-enabled {}.service
开机自动开启服务:
systemctl enable {}.service
取消开机自启服务:
systemctl disable {}.service
重新载入 systemd,扫描新的或有变动的服务:
systemctl daemon-reload
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。