这篇文章给大家介绍CentOS 7与CentOS 6的区别是什么,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
[CentOS 6] GNOME 2.x
[CentOS 7] GNOME 3.x(GNOME Shell)
[CentOS 6] ext4
[CentOS 7] xfs
[CentOS 6] 2.6.x-x
[CentOS 7] 3.10.x-x
[CentOS 6] 2.6
[CentOS 7] 2.7
[CentOS 6] iptables
[CentOS 7] firewalld
[CentOS 6] MySQL
[CentOS 7] MariaDB
[CentOS 6] /bin, /sbin, /lib, and /lib64在/下
[CentOS 7] /bin, /sbin, /lib, and /lib64在/usr下
[CentOS 6] /etc/sysconfig/network
[CentOS 7] /etc/hostname
[CentOS 6]
$ ntp
$ ntpq -p
[CentOS 7]
$ chrony
$ chronyc sources
[CentOS 6]
$ vim /etc/sysconfig/clock
ZONE="Asia/Tokyo"
UTC=fales
$ sudo ln -s /usr/share/zoneinfo/Asia/Tokyo/etc/localtime
[CentOS 7]
$ timedatectl set-timezone Asia/Tokyo
$ timedatectl status
[CentOS 6]
$ vim /etc/sysconfig/i18n
LANG="zh_CN.utf8"
$ /etc/sysconfig/i18n
$ locale
[CentOS 7]
$ localectl set-locale.utf8
$ localectl status
实际修改的是文件 /etc/locale.conf
修改 Secure CRT 的Terminal—>Appearance—>“Character encoding”为 UTF-8,控制台方能正常显示中文。
[CentOS 6]
$ service service_name start
$ service service_name stop
$ service sshd restart/status/reload
[CentOS 7]
$ systemctl start service_name
$ systemctl stop service_name
$ systemctl restart/status/reload sshd
[CentOS 6]
$ chkconfig service_name on/off
[CentOS 7]
$ systemctl enable service_name
$ systemctl disable service_name
[CentOS 6]
$ chkconfig --list
[CentOS 7]
$ systemctl list-unit-files
$ systemctl --type service
[CentOS 6]
$ kill -9
[CentOS 7]
$ systemctl kill --signal=9 sshd
[CentOS 6]
$ netstat
$ netstat -I
$ netstat -n
[CentOS 7]
$ ip n
$ ip -s l
$ ss
[CentOS 6]
$ ifconfig -a
[CentOS 7]
$ ip address show
[CentOS 6]
$ route -n
$ route -A inet6 -n
[CentOS 7]
$ ip route show
$ ip -6 route show
[CentOS 6]
$ shutdown -h now
[CentOS 7]
$ poweroff
$ systemctl poweroff
[CentOS 6]
$ reboot
$ shutdown -r now
[CentOS 7]
$ reboot
$ systemctl reboot
[CentOS 6]
$ init S
[CentOS 7]
$ systemctl rescue
[CentOS 6]
[GUICUI]
$ vim /etc/inittab
id:3:initdefault:
[CUIGUI]
$ startx
[CentOS 7]
[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
[CentOS 6]
eth0
[CentOS 7]
成为了可预见性的命名规则
关于CentOS 7与CentOS 6的区别是什么就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。