centos/rhel 7大版本的最重要变化(systemd,firewalld,networkmanager,文件系统)

  对于支持systemd的系统,现在很多开源应用都提供了"for system with systemd"的选项便于管理,例如mysql,判断systemd可通过ps ax | grep systemd查看是否有进程号为1的进程。如下:

[root@linux-dev ~]# ps axu | grep systemd
root 1 0.0 0.5 193936 5016 ? Ss 13:28 0:03 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
root 486 0.0 0.4 38572 4076 ? Ss 13:29 0:00 /usr/lib/systemd/systemd-journald
root 521 0.0 0.1 48680 1052 ? Ss 13:29 0:00 /usr/lib/systemd/systemd-udevd
root 692 0.0 0.1 26428 1512 ? Ss 13:29 0:00 /usr/lib/systemd/systemd-logind

  详细参考:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html

http://www.cnblogs.com/moxiaoan/p/5683743.html

  详细参考:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html#sec-Using_iptables

在CentOS/RHEL 7中关闭防火墙使用以下命令:

//临时关闭

systemctl stop firewalld

//禁止开机启动

systemctl disable firewalld

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

详细参考:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Introduction_to_NetworkManager.html

安装支持systemctl自动启动
https://zhuanlan.zhihu.com/p/69073081

 rhel/centos/oel 7默认xfs文件系统,6则是ext4文件系统

  ext3/ext4/xfs的性能差网上有个测试:https://www.cnblogs.com/tommyli/p/3201047.html,这个相对还是可以参考的,某种场景使用某种文件系统,对性能的提升很可能是非常明显的,可能不用代码和设计调整,就比操作系统提供的默认选项高一倍。

  noatime,网上有些个基于fio和dd测试结果,参考:https://blog.csdn.net/bobpen/article/details/41282395、http://saplingidea.iteye.com/blog/636770,尤其是差距在百分之几十的,要想准确知道对应用系统的提升,并不容易测试,通常只有在非刻意的性能测试模式才容易计算出来。

Chrony代替了NTP

  参见https://blog.csdn.net/s_alted/article/details/129532065

  chrony与NTP的冲突 https://huaweicloud.csdn.net/64f5a1776b896f66024c903d.html

  注:因为最近一直在研究大数据量oracle/mysql导入导出的极速性能,今天特地测试了本地环境,noatime在oracle导数据到文本文件时性能差异不大(也可能本地是ssd的原因,cpu用户态接近100%,iowait几乎都在1%以内),后面再拿nfs和比较慢的hdd进行测试。

 

posted @ 2017-04-06 20:34  zhjh256  阅读(260)  评论(0编辑  收藏  举报