CentOS6和CentOS7的区别( 二 )


$ systemctl reboot
单用户模式
[CentOS6]
$ init S
[CentOS7]
$ systemctl rescue
启动模式
[CentOS6]
[GUICUI]
$ vim /etc/inittab
id:3:initdefault:
[CUIGUI]
$ startx
[CentOS7]
[GUICUI]
$ systemctl isolate multi-user.target
[CUIGUI]
$systemctl isolate graphical.target
默认
$ systemctl set-default graphical.target
$ systemctl set-default multi-user.target
当前
$ systemctl get-default
总结一下
常用命令
ipconfig 变成了 ip addr
service iptables restart 变成了 systemctl restart firewalld
chkconfig iptables off 变成了 systemctl disable firewalld
安装软件
装好虚拟机后别忘了装psmisc sudo yum -y install psmisc , 没有安装psmisc , 导致找不到 fuser命令 。




推荐阅读