以下所示:數據庫
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的主要變化所有內容了,但願你們多多支持腳本之家~