常用的service与systemctl命令的对比
应用举例:
●start:开启服务
●stop:停止服务
●status:参数来查看服务运行情况
●restart:重新加载服务
应用举例·;
#启动网络服务
systemctl start network
#停止网络服务
systemctl stop network
#查看网络服务状态
systemctl status network
#查看防火墙
systemctl status firewalld
chkconfig命令与systemctl命令对比
systemctl命令用法 1)systemctl is-active [unit type] #查看服务是否运行 2)systemctl is-enable [unit type] #查看服务是否设置为开机启动 3)systemctl mask [unit type] #注销指定服务 4)systemctl unmask [unit type] #取消注销指定服务