CentOS
发布时间:2022-04-02 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS 7 vs CentOS 6的不同,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
概述
CentOS 7 vs CentOS 6的不同
(1)桌面系统 [CentOS
6] GNOME 2.x [CentOS7] GNOME 3.x(GNOME S
Hell) (2)文件系统 [CentOS
6] ext4 [CentOS7] xfs (3)内核版本 [CentOS
6] 2.6.x-x [CentOS7] 3.10.x-x (4)启动加载器 [CentOS
6] GRUB Leg
CentOS 7 vs CentOS 6的不同
(1)桌面系统
[CentOS
6] GNOME 2.x
[CentOS7] GNOME 3.x(GNOME S
Hell)
(2)
文件系统
[CentOS
6] ext4
[CentOS7] xfs
(3)内核版本
[CentOS
6] 2.6.x-x
[CentOS7] 3.10.x-x
(4)启动加载器
[CentOS
6] GRUB Legacy (+efibootmgr)
[CentOS7] GRUB2
(5)防火墙
[CentOS
6] iptables
[CentOS7] firewalld
(7)
文件结构
[CentOS
6] /bin,/sbin,/lib,and /lib64在/下
[CentOS7] /bin,and /lib64移到/usr下
(8)主机名
[CentOS
6] /etc/syscon
fig/network
[CentOS7] /etc/hostname
(
9)时间同步
[CentOS
6]
$ ntp
$ ntpq -p
[CentOS7]
$ chrony
$ chronyc
sources
(10)
修改时间
[CentOS
6]
$ vim /etc/syscon
fig/clock
ZONE="Asia/Tokyo"
UTC=
fales
$ sudo ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
[CentOS7]
$ timedatectl set-timezone Asia/Tokyo
$ timedatectl status
(11)
修改地区
[CentOS
6]
$ vim /etc/syscon
fig/i18n
LANG="ja_JP.utf8"
$ /etc/syscon
fig/i18n
$ locale
[CentOS7]
$ localectl set-locale LANG=ja_JP.utf8
$ localectl status
服务一览
[CentOS
6]
$ chkcon
fig --list
强制停止
[CentOS
6]
$ kill -9 <PID>
[CentOS7]
$ sy
stemctl kill --signal=9 sshd
(13)网络
1)网络信息
[CentOS
6]
$ netstat
$ netstat -I
$ netstat -n
[CentOS7]
$ ip n
$ ip -s l
$ ss
2)IP地址MAC地址
[CentOS
6]
$ ifcon
fig -a
[CentOS7]
$ ip address show
3)路由
[CentOS
6]
$ route -n
$ route -A inet6 -n
[CentOS7]
$ ip route show
$ ip -6 route show
[CentOS7]
$ poweroff
$ sy
stemctl poweroff
2)重启
[CentOS
6]
$ reboot
$ shutdown -r
Now
[CentOS7]
$ reboot
$ sy
stemctl reboot
3)单
用户模式
[CentOS
6]
$ init S
[CentOS7]
$ sy
stemctl rescue
4)启动模式
[CentOS
6]
[GUICUI]
$ vim /etc/inittab
id:3:initdefault:
[CUIGUI]
$ startx
Linux7
修改网络配置
还是在/etc/syscon
fig/network-scripts/下
Linux7的yum相关
1.挂载包源CentOS7.iso到系统
@H_857_19
@mount /dev/cdrom /mnt
@H_857_19
@mount -t iso9660 -o loop /CentOS7.iso /mnt
2.配置本地yum源
vim /etc/yu
m.repo
s.d/CentOS-Media.repo
[r
Hel-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/
enabled=1
gpg
check
=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
3.使用
yum clean all
yum list
Linux7最小环境下安装图形界面 yum groupinstall "X Window Sy
stem" yum groupinstall "GNOME Desktop" yum groupinstall "Graphical Administration Tools" startx ln -sf /lib/sy
stemd/sy
stem/runlevel5.target /etc/sy
stemd/sy
stem/default.target #将图形界面设为
默认启动界面
大佬总结
以上是大佬教程为你收集整理的CentOS 7 vs CentOS 6的不同全部内容,希望文章能够帮你解决CentOS 7 vs CentOS 6的不同所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。