1、主机名
CentOS6:/etc/sysconfig/network
CentOS7:/etc/hostname
2、防火墙:
CentOS6:iptables
CentOS7:firewalld
3、默认数据库
CentOS6:MySQL
CentOS7:MariaDB
4、时间同步
CentOS6:
$ ntp
$ ntpq -p
CentOS7:
$ chrony
$ chronyc sources
5、桌面系统
CentOS6:GNOME 2.x
CentOS7:GNOME 3.x(GNOME Shell)
6、文件系统
CentOS6:ext4
CentOS7:xfs
7、内核版本
CentOS6:2.6.x-x
CentOS7:3.10.x-x
8、服务的启动、停止
CentOS6:
service service_name start
service service_name stop
service sshd restart/status/reload
CentOS7:
systemctl start service_name
systemctl stop service_name
systemctl restart/status/reload sshd
9、服务自启动
CentOS6:chkconfig service_name on/off
CentOS7:
systemctl enable service_name
systemctl disable service_name
10、服务一览
CentOS6:chkconfig --list
CentOS7:
systemctl list-unit-files
systemctl --type service
11、强制停止
CentOS6:kill -9 <PID>
CentOS7:systemctl kill --signal=9 sshd
12、网络信息
CentOS6:
netstat
netstat -I
netstat -n
CentOS7:
ip n
ip -s l
ss
13、IP地址MAC地址
CentOS6:ifconfig -a
CentOS7:ip address show