浅谈RHEL7和RHEL6的主要变化
程序员文章站
2023-11-20 10:47:16
如下所示:
浅谈rhel7和rhel6的主要变化
rhel7
rh...
如下所示:
浅谈rhel7和rhel6的主要变化 | ||
rhel7 | rhel6 | |
文件系统 | xfs | ext4 |
内核版本 | 3.10.x-x系列 | 2.6.x-x系列 |
内核名称 | maipo | santiago |
发布时间 | 2014-06-09(3.10.0-123) | 2010-11-09(2.6.32-71) |
进程名称 | systemd | init |
运行级别 | runlevel0.target->poweroff.target runlevel1.target->rescue.target runlevel2.target->multi-user.target runlevel3.target->multi-user.target runlevel4.target->multi-user.target runlevel5.target->graphical.target runlevel6.target->reboot.target /etc/systemd/system/default.target |
runlevel0 runlevel1 runlevel2 runlevel3 runlevel4 runlevel5 runlevel6 /etc/inittab |
主机名称 | /etc/hostname | /etc/sysconfig/network |
最大文件 | 500tb | 16tb |
检查工具 | xfs.repair | e2fsck |
启动工具 | grub2 | grub0.97 |
服务启动 | systemd | upstart |
服务管理 | systemctl enable xxx.service systemctl start xxx.service systemctl stop xxx.service systemctl restart xxx.service 兼容chkconfig,service命令 |
service enable xxx.service service stop xxx.service service start xxx.service chkconfig --level 3 5 nfs on |
防火墙 | 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 identity |
配置订阅信息 | 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 ls /{usr/lib,etc}/systemd/system/*.service |
chkconfig ls /etc/init.d/ |
服务启动 | 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 |
init runlevel |
日志文件 | /etc/rsyslog.conf /etc/rsyslog.d/*.conf /var/log/journal/ /etc/systemd/journald.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 grub2-mkconfig grub-set-default |
/boot/grub/grub.conf |
软件管理 | rhel7 | rhel6 |
安装软件包 | yum install yum group install |
yum install yum groupinstall |
查看软件包 | yum info yum group info |
yum info yum groupinfo |
文件系统 | rhel7 | rhel6 |
建立文件系统 | fdisk parted gdisk | fdisk parted |
lvm管理 | vgextend lvextend xfs_growfs | vgextend lvextend resize2fs |
网络接口配置 | rhel7 | rhel6 |
配置名称 | /etc/hosts /etc/resolv.conf nmcli conmod |
/etc/hosts /etc/resolv.conf |
主机名称配置 | /etc/hostname hostnamectl nmcli |
/etc/sysconfig/network |
ip地址配置 | ip addr nmcli dev show teamdctl brctl bridge |
ip add ifconfig brctl |
配置防火墙 | firewall-cmd firewall-config |
iptables&ip6tables /etc/sysconfig/ip*tables system-config-firewall |
查看端口命令 | ss lsof |
netstat ss lsof |
以上就是小编为大家带来的浅谈rhel7和rhel6的主要变化全部内容了,希望大家多多支持~