html tool

2019年4月26日星期五

systemctl 修改配置后“systemctl daemon-reload ”


问题:

修改system的一个服务的配置启动命令
restart时提示“Warning: ttt.service changed on disk. Run 'systemctl daemon-reload' to reload units.”


按提示运行就可以了,之后在重启你的服务

介绍:


# 重载所有修改过的配置文件
$ sudo systemctl daemon-reload

没有评论:

发表评论