CentOS 7设置服务的开机启动

Centos 7下我们常常使用systemctl命令对服务进行管理,systemctl命令的使用方法如下:

systemctl   选项     服务.service

而最常用的选项有如下6个

start(启动)     stop(关闭)     resstart(重启)              //立即生效

enable    disable    is-enable                                 //针对下次开机的时候动作

systemctl enable   firewalld.service)    #设置防火墙开机自动启动

systemctl disable  firewalld.service)    #取消防火墙开机自动启动 

systemctl   is-enabled   服务.service          //查询是否允许开机启动

posted @ 2016-10-10 16:26  疯狂的鱼摆摆  阅读(234)  评论(0编辑  收藏  举报