Systemctl
时间:2022-05-27 20:33:12
收藏:0
阅读:4
启动、重启、停止、重载服务以及检查服务(如 httpd.service)状态
systemctl的start,restart,stop和reload命令时,我们不会从终端获取到任何输出内容,只有status命令可以打印输出。
# systemctl start httpd.service# systemctl restart httpd.service# systemctl stop httpd.service# systemctl reload httpd.service# systemctl status httpd.service
激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务)
# systemctl is-active httpd.service# systemctl enable httpd.service# systemctl disable httpd.service
原文:https://www.cnblogs.com/blog-zx/p/15352629.html
评论(0)