当前位置:   article > 正文

systemctl重新加载_对/etc/systemd/system.conf的更改重新启动或“systemctl daemon-reload”?...

systemctl daemon-reload

不,daemon-reload将重新加载所有单元文件,而不是systemd本身的配置.但是,#systemctl daemon-reexec将重新执行systemd并使其在此过程中消化其新配置.

从systemctl手册页:

daemon-reexec

Reexecute the systemd manager. This will serialize the manager

state, reexecute the process and deserialize the state again. This

command is of little use except for debugging and package upgrades.

Sometimes, it might be helpful as a heavy-weight daemon-reload.

While the daemon is being reexecuted, all sockets systemd listening

on behalf of user configuration will stay accessible.

当手册页说daemon-reexec对包升级有用时,它在很大程度上意味着该命令执行任何新的二进制文件并重新处理其配置.但是,我们用于升级systemd的RPM已经包含了执行此操作的脚本,因此在正常升级的情况下通常不需要它.

或者你可以重启.要么会这样做.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/155440
推荐阅读
相关标签
  

闽ICP备14008679号