Centos 7 service 命令的更改,systemctl命令简单实用实例

来源:互联网 发布:关注淘宝店图片 编辑:程序博客网 时间:2024/05/20 04:48

centos 7 中的类似“service httpd start”服务启动,停止,重启指令,“service”已更改为“systemctl”。具体示例如下:

systemctl start httpd.service  启动Apache httpdsystemctl restart httpd.service  重新启动systemctl stop httpd.service  停止服务

同样类似“chkconfig httpd on”设置服务开机启动项,指令已更改为“systemctl enable”,具体示例如下:

systemctl enable httpd.service  开机启动httpdsystemctl disable httpd.service  禁止开机启动httpd

友情链接

0 0
原创粉丝点击