centos 常用命令(1)——系统命令,centos常用命令


1、systemctl 列出正在运行的任务

2、systemctl start *.service 开启相关服务

3、systemctl stop *.service 关闭相关服务

4、systemctl restart *.service 重启一个服务

5、systemctl status *.service 显示一个服务的状态

6、systemctl enable *.service 开机时启动服务

7、systemctl disable *.service 开机时禁止启动服务

8、systemctl is-enabled *.service 查看服务是否开机启动

9、systemctl list-unit-files|grep enabled 查看已启动的服务

相关内容