Linux系统,常用服务类相关命令
-
Centos 6
- 实操命令
servier network status chkconfig --list chkconfig --level 5 network off
-
Centos 7
- 实操命令
systemctl status firewalld systemctl stop firewalld systemctl list-unit-files systemctl list-unit-files | grep firewalld systemctl disable firewalld
彩蛋
1.查看服务器版本
1)查看Linux内核版本命令(两种方法)
cat /proc/version
uname -a
2)查看Linux系统版本的命令(3种方法):
lsb_release -a,即可列出所有版本信息:
cat /etc/redhat-release,这种方法只适合Redhat系的Linux:
cat /etc/issue,此命令也适用于所有的Linux发行版。
2.centos 7可以用centos 6命令,是兼容的
3.chkconfig level
3-无图形化界面
5-有图形化界面