Redhat7 一些新特性(持续补充)

超强整理

System Basics[td]

Task
RHEL6
RHEL7
View RH subscription information
/etc/sysconfig/rhn/systemid 
subscription-manager identity
subscription-manager identity
Configure RH subscription
rhn_register 
rhnreg_ks 
subscription-manager
subscription-manager 14 
rhn_register 15
Basic Configuration [td]
Task
RHEL6
RHEL7
Graphical configuration tools
system-config-*
gnome-control-center
Configure network
system-config-network
nmcli 
nmtui 
nm-connection-editor
Configure system language
system-config-language
localectl
Configure system time and date
system-config-date 
date
timedatectl 
date
Synchronize time and date
ntpdate 
/etc/ntp.conf
ntpdate 
/etc/chrony.conf
Configure keyboard
system-config-keyboard
localectl
Jobs and services [td]
Task
RHEL6
RHEL7
List all services
chkconfig 
ls /etc/init.d/
systemctl -at service 
ls /{usr/lib,etc}/systemd/system/*.service
List running services
service –status-all
systemctl -t service –state=active
Start/stop a service
service  name start 
service  name stop
systemctl start  name.service 
systemctl stop  name.service
Enable/disable a service
chkconfig  name on 
chkconfig  name off
systemctl enable  name.service 
systemctl disable  name.service
Check if service enabled
chkconfig  name
systemctl is-enabled  name
View service status
service  name status
systemctl status  name.service
Create service file or change config
chkconfig –add
systemctl daemon-reload
View runlevel/target
runlevel
systemctl get-default
Change runlevel/target
init  runlevel
systemctl isolate  name.target 
init  runlevel
Configure logging
/etc/rsyslog.conf
/etc/rsyslog.conf 
/etc/rsyslog.d/*.conf 
/var/log/journal/ 
/etc/systemd/journald.conf
View logs
/var/log/
/var/log/ 
journalctl
Kernel, boot, and hardware [td]
Task
RHEL6
RHEL7
Bypass root password prompt at boot
append  1 or  s or  init=/bin/bash to kernel cmdline
append  rd.break or  init=/bin/bash to kernel cmdline
Shut down system
shutdown
systemctl shutdown
Power off system
poweroff
systemctl poweroff
Halt system
halt
systemctl halt
Reboot system
reboot
systemctl reboot
Configure default runlevel/target
/etc/inittab
systemctl set-default
Configure GRUB bootloader
/boot/grub/grub.conf
/etc/default/grub 
grub2-mkconfig 
grub-set-default
Software management [td]
Task
RHEL6
RHEL7
Install software
yum install 
yum groupinstall
yum install 
yum group install
View software info
yum info 
yum groupinfo
yum info 
yum group info
File systems, volumes, and disks [td]
Task
RHEL6
RHEL7
Create/modify disk partitions
fdisk 
parted
fdisk 
parted 
gdisk
Default file system
ext4
xfs
Enlarge volumes formatted with default filesystem
vgextend 
lvextend 
resize2fs
vgextend 
lvextend 
xfs_growfs
Networking [td]
Task
RHEL6
RHEL7
Configure name resolution
/etc/hosts 
/etc/resolv.conf
/etc/hosts 
/etc/resolv.conf 
nmcli con mod
Configure hostname
/etc/sysconfig/network
/etc/hostname 
hostnamectl 
nmtui
View network interface info
ip addr 
ifconfig 
brctl
ip addr 
nmcli dev show 
teamdctl 
brctl 
bridge
Configure network interface
/etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network-scripts/ifcfg-* 
nmcli con [add|mod|edit] 
nmtui 
nm-connection-editor
Configure firewall
iptables & ip6tables 
/etc/sysconfig/ip*tables 
system-config-firewall
firewall-cmd 
firewall-config
View ports/sockets
netstat 
ss 
lsof
ss 
lsof


1、关于防火墙
禁用Firewalld,启用Iptables。

systemctl mask firewalld
systemctl stop firewalld
yum -y install iptables-services
systemctl enable iptables
systemctl enable ip6tables
systemctl start iptables
systemctl start ip6tables


2、默认使用 XFS文件系统  第3个主要的改变是使XFS成为RHEL默认的文件系统,尽管这可能不那么引人瞩目。最初由Silicon Graphics International(硅谷图形公司)创建的XFS在Linux系统上用做生产环境已经很长时间了。在RHEL 7上它将支持高达500TB的文件系统。RHEL 6默认使用ext4,尽管它有XFS选项。红帽子的竞争对手Suse Linux 也支持XFS,尽管它安装时默认使用ext3。非常不幸的是,没有真正的方法可以将RHEL目前使用的其他文件系统,比如ext4或者btrfs移植到XFS。只能备份然后重建(来进行移植)。


3、兼容微软的身份管理就算是那些不是微软系统粉丝的管理员也对微软目录服务保持一定的尊重。RHEL 7添加了两个关键的特性以优化处理微软目录服务(AD)的方式。跨域认证现在可以在RHEL 7和微软目录服务之间建立,所以目录服务用户可以直接访问Linux侧的资源,不需要再进行一次登录。RHEL 7另一个目录服务相关的附加特性,是基于DNS信息自动发现和加入目录服务(或者其他红帽子认证服务)。


4、Docker
  RHEL 7中最大的新特性就是紧密集成了广受欢迎的应用程序虚拟化技术Docker。随着Docker 1.0发布,把它集成到RHEL 7里正是恰逢其时。
  用Docker包装的应用程序可以独立于操作系统,所以它们可以在操作系统之间移植并且正常运行。RHEL 7打算尽可能高效地使用Docker,以防止应用程序竞争资源或者为使用哪种运行时环境而困惑。
  从RHEL的Docker路线图上的长期计划表来看,这可能会超越操作系统本身,发展成一系列的Docker容器,它可以支持用最小的开销部署一个系统。这个被称为"Atomic项目"的计划还处于早期阶段,红帽公司准备首先将它部署在他的Fedora Linux发行版,仅仅当做对前沿技术的测试。

5、 Systemd
  引入systemd进程管理器可能引起系统管理员和Linux专家之间激烈的争论。systemd就被开发用于替代自专用Unix出现以来就在使用的init系统,它使得启动过程中装载服务更加高效。
  因为systemd可能会带来一些不适,红帽公司没有马上在RHEL上使用systemd。早在2010发布的Fedora版本15就已经包含了systemd作为默认项目,这给了红帽公司一次很好的了解systemd在真实世界的运行的经验。同样,systemd也没有孤立地加入RHEL 7,而是作为这个OS大计划的一部分。例如,红帽公司希望通过使用systemd加强对RHEL 7中Docker容器的支持。

6、默认使用 XFS
  第3个主要的改变是使XFS成为RHEL默认的文件系统,尽管这可能不那么引人瞩目。
  最初由Silicon Graphics International(硅谷图形公司)创建的XFS在Linux系统上用做生产环境已经很长时间了。在RHEL 7上它将支持高达500TB的文件系统。RHEL 6默认使用ext4,尽管它有XFS选项。红帽子的竞争对手Suse Linux 也支持XFS,尽管它安装时默认使用ext3。
  非常不幸的是,没有真正的方法可以将RHEL目前使用的其他文件系统,比如ext4或者btrfs移植到XFS。只能备份然后重建(来进行移植)。

7、 性能监控(PCP:Performance Co-Pilot)
  进行性能调整的时候看不到实时数据就像是开着一辆挡风玻璃被刷上了油漆的车,所以RHEL 7添加了一个新的性能监控系统PCP(Performance Co-Pilot),PCP最初由Silicon Graphics International(硅谷图形)创建,但是现在它是RHEL 7的一部分。除了监控和记录系统状态,PCP还为其他子系统提供获取数据的API和工具集,比如正如你猜到的,刚刚介绍的systemd。
  遵循这个思路,另一个次要的附加特性:新的性能配置文件。RHEL 6已经有符合特殊应用场景的调整RHEL的配置文件。RHEL 7不仅默认有一个新的性能最大化的配置文件,而且包含另一个新的平衡性能表现和能源消耗的配置文件。



Red Hat Linux 7.2新特性

  • 按照Red Hat的惯例,7.2版应该是7.x系列的最后一个版本,下一个版本应该是8.0。每一个x.2是同一系列中最稳定的版本,因此,7.2是7.x系列的最稳定版本。 

    7.2的最大特性是支持ext3文件系统。ext3文件系统向下兼容ext2文件系统(Linux标准文件系统),ext2文件系统可以转换为ext3文件系统而不丢失数据。Ext3实际上是ext2系统加上日志功能。优点是,每当文件系统的数据发生变化时,这些变化先被存储到日志记录区。这样在系统发生以外宕机后重新启动时,系统会很快通过日志记录将文件系统恢复到宕机前的状态。如果在几十GB的硬盘上使用ext2,这个恢复过程需要一个多小时。因此可以说这个功能是Linux做服务器必不可少的功能。 

    7.2还加入了不少独自开发的管理工具,如网络配置工具redhat-config-network、打印配置工具printconf-gui、用户管理工具userconf。 

    7.2的安装程序也得到了加强。对初学者帮助最大的是自动分区功能。因为使用Windows是不用做分区,如何设定分区对Linux初学者是最难过的门槛。相信7.2的这一功能将吸引一批新用户。 

    7.2抛弃了一直沿用的lilo系统引导器,换之以带有图形界面的GRUB。GRUB的优点是可以设置密码,提高系统安全。还有更新内核时,不用象lilo那样每一次都得执行一遍。 

    不能不提及的新特性是7.2的中文功能。7.2中加入了台湾文鼎公司的两款TrueType字体和Chinput、Xcin中文输入软件。但是从显示效果来看,还远远没有达到中文Linux发行版的水平。不过国内厂商出版的7.2版当中,有一款带有“阳春白雪”的中文环境,效果上与中文Linux相当。

你可能感兴趣的:(Redhat7 一些新特性(持续补充))