首页 > 编程知识 正文

rhel7和centos7的区别,rhel和centos区别

时间:2023-05-05 15:10:02 阅读:46660 作者:2211

)1)桌面系统

[CentOS6] GNOME 2.x

[ centos7] gnome3. x (gnome shell ) )

)2)文件系统

[CentOS6] ext4

[CentOS7] xfs

)3)内核版本

[CentOS6] 2.6.x-x

[CentOS7] 3.10.x-x

)4)启动加载器

([centos6]grublegacy(EFIbootmgr ) ) ) ) ) ) ) ) ) )

[CentOS7] GRUB2

)5)防火墙

[CentOS6] iptables

[ centos7]防火墙d

(6)默认数据库

[CentOS6] MySQL

[CentOS7] MariaDB

(7)文件结构

[CentOS6] /bin、/sbin、/lib、and /lib64位于/下

[CentOS7] /bin、/sbin、/lib、and /lib64移动到/usr下

)8)主机名

[ centos6]/etc/sys config/network

[CentOS7] /etc/hostname

(9)时间同步

[CentOS6]

$ ntp

$ ntpq -p

[CentOS7]

$ chrony

$ chronyc sources

(10 )修改时间

[CentOS6]

$ vim /etc/sysconfig/clock

ZONE='Asia/Tokyo '

$ sudo ln-s/usr/share/zoneinfo/Asia/Tokyo/etc/local time

[CentOS7]

$ timedatectlset-time zone Asia/Tokyo

$ timedatectl status

(十一)区域修改

[CentOS6]

$ vim /etc/sysconfig/i18n

LANG='ja_JP.utf8 '

$ /etc/sysconfig/i18n

$ locale

[CentOS7]

$ localectlset-locale lang=ja _ jp.utf8

$ localectl status

(十二)服务相关

1 )停止启动

[CentOS6]

$服务服务_ name start

$服务服务_ name stop

$ servicesshdrestart/status/reload

[CentOS7]

$ systemctl start service_name

$ systemctl stop service_name

$ systemctlrestart/status/reload sshd

[CentOS6]

$ chkconfig service_name on/off

[CentOS7]

$ systemctl enable service_name

$ systemctl disable service_name

[CentOS6]

$ chkconfig --list

[CentOS7]

$ systemctl list -单元文件

$ systemctl--类型服务

[CentOS6]

$ kill -9

[CentOS7]

$ systemctl kill --signal=9 sshd

(13 )网络

1 )网络信息

[CentOS6]

$ netstat

$ netstat -I

$ netstat -n

[CentOS7]

$ ip n

$ ip -s l

$ ss

2 ) IP地址MAC地址

[CentOS6]

$ ifconfig -a

[CentOS7]

$ IP地址显示

3 )路由

[CentOS6]

$ route -n

$ route -A inet6 -n

[CentOS7]

$ ip route show

$ IP-6路由显示

(14 )重启关机

1 )关闭

[CentOS6]

$ shutdown -h now

[CentOS7]

$电源关闭

$ systemctl电源关闭

2 )重启

[CentOS6]

$ reboot

$ shutdown -r now

[CentOS7]

$ reboot

$系统重新引导

3 )单用户模式

[CentOS6]

$ init S

[CentOS7]

$ systemctl rescue

4 )启动模式

[CentOS6]

[GUICUI]

$ vim /etc/inittab

id:3:initdefault:

[CUIGUI]

$ startx

[CentOS7]

[GUICUI]

$ systemctlisolatemulti-user.target

[CUIGUI]

$ systemctlisolategraphical.target

$ systemctlset-default graphical.target

$ systemctlset-default multi-user.target

$ systemctl get-default

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。