service iptables stop/start/restart
systemctl stop/start/restart firewalld
主要還是操作服務的改變,由原來的service+服務進程+操作變爲systemctl+操作+服務,順序稍微改變了一下,用起來可能不是很順手,熟悉以後沒什麼大問題。
服務進程可以記爲:systemctl+操作+服務
IP地址
[CentOS6]ifconfig
[CentOS7]ip address show/ip addr
發現ifconfig同樣適用CentOS7,ip變爲ens...
主機名的位置也發生了變化
[CentOS6] /etc/sysconfig/network
[CentOS7] /etc/hostname
開機啓動/關閉
[CentOS6]
chkconfig service_name on/off
[CentOS7]
systemctl enable service_name
systemctl disable service_name
後臺進程
[CentOS6]netstat
[CentOS7]ss