以下所示:数据库
RHEL7bash |
RHEL6网络 |
|
文件系统app |
XFS负载均衡 |
EXT4ide |
内核版本工具 |
3.10.x-x系列ui |
2.6.x-x系列spa |
内核名称rest |
Maipo |
Santiago |
发布时间 |
2014-06-09(3.10.0-123) |
2010-11-09(2.6.32-71) |
进程名称 |
systemd |
init |
运行级别 |
runlevel0.target->poweroff.target |
runlevel0 |
主机名称 |
/etc/hostname |
/etc/sysconfig/network |
最大文件 |
500TB |
16TB |
检查工具 |
xfs.repair |
e2fsck |
启动工具 |
GRUB2 |
GRUB0.97 |
服务启动 |
Systemd |
Upstart |
服务管理 |
systemctl enable xxx.service |
service enable xxx.service |
防火墙 |
Firewalld兼容Iptables |
Iptables |
网络绑定 |
Team Driver |
Bonding |
网络时间 |
Chrony,ntpd |
ntpd |
NFS版本 |
NFS4.1 支持NFSv3,NFSv4.0,NFSv4.1客户端 |
NFS4 |
集群管理工具 |
Pacemaker |
Rgmanager |
负载均衡工具 |
Keepalived,HAProxy |
Rgmanager |
桌面环境 |
GNOME3,KDE4.10 |
GNOME2 |
数据库 |
MariaDB |
MySQL |
RHEL7和RHEL6的管理命令和配置文件的变化 |
||
订阅信息 |
RHEL7 |
RHEL6 |
订阅信息工具 |
subscription-manager identity |
/etc/sysconfig/rhn/systemid |
配置订阅信息 |
subscription-manager rhn_register |
rhn_register rhnreg_ks subscription-manager identity |
基本配置 |
RHEL7 |
RHEL6 |
GUI配置工具 |
gnome-control-center |
system-config-* |
网络配置工具 |
nmcli nmtui nm-connection-editor |
system-config-network |
语言配置工具 |
localectl |
system-config-language |
时间配置工具 |
timedatectl date |
system-config-date date |
时间同步 |
ntpdate /etc/chrony.conf |
ntpdate /etc/ntp.conf |
键盘配置 |
localectl |
system-config-keyboard |
服务管理 |
RHEL7 |
RHEL6 |
服务列表 |
systemctl -at service |
chkconfig |
服务启动 |
systemctl start name.service |
service name start |
服务中止 |
systemctl stop name.service |
service name stop |
服务查看 |
systemctl status name.service |
service name status |
服务重启 |
systemctl restart name.service |
service name restart |
服务开机自启 |
systemctl enable name.service |
chkconfig name on |
服务开机不自启 |
systemctl disable name.service |
chkconfig name off |
添加服务 |
systemctl daemon-reload |
achkconfig --add |
服务列表查看 |
systemctl -t service --state=active |
service --status-all |
查看运行级别 |
systemctl get-default |
runlevel |
修改运行级别 |
systemctl isolate name.target |
init runlevel |
日志文件 |
/etc/rsyslog.conf |
/etc/rsyslog.conf |
查看日志文件 |
/var/log/ |
/var/log/journalctl |
内核硬件 |
RHEL7 |
RHEL6 |
启动提示符 |
append rd.break or init=/bin/bash to kernel cmdline |
append 1 or s or init=/bin/bash to kernel cmdline |
关闭系统 |
systemctl shutdown |
shutdown |
关闭电源 |
systemctl poweroff |
poweroff |
挂起系统 |
systemctl halt |
halt |
重启系统 |
systemctl reboot |
reboot |
修改运行级别 |
systemctl set-default |
/etc/inittab |
配置GRUB |
/etc/default/grub |
/boot/grub/grub.conf |
软件管理 |
RHEL7 |
RHEL6 |
安装软件包 |
yum install |
yum install |
查看软件包 |
yum info |
yum info |
文件系统 |
RHEL7 |
RHEL6 |
创建文件系统 |
fdisk parted gdisk |
fdisk parted |
LVM管理 |
vgextend lvextend xfs_growfs |
vgextend lvextend resize2fs |
网络接口配置 |
RHEL7 |
RHEL6 |
配置名称 |
/etc/hosts |
/etc/hosts |
主机名称配置 |
/etc/hostname |
/etc/sysconfig/network |
Ip地址配置 |
ip addr |
ip add |
配置防火墙 |
firewall-cmd |
iptables&ip6tables |
查看端口命令 |
ss |
netstat |
以上就是小编为你们带来的浅谈RHEL7和RHEL6的主要变化所有内容了,但愿你们多多支持脚本之家~