------------selinux
[root@test01 sysconfig]# vi /etc/selinux/config
reboot
[root@test01 sysconfig]# sestatus
----------防火墙
[root@test01 sysconfig]# systemctl status firewalld.service
[root@test01 sysconfig]# systemctl stop firewalld.service
[root@test01 sysconfig]# systemctl disable firewalld.service
-----------sshd
[root@test01 ~]# service status sshd
------------修改虚存配置
[root@test01 opt]# echo ‘* soft as unlimited’>>/etc/security/limits.conf
[root@test01 opt]# echo ‘* hard as unlimited’>>/etc/security/limits.conf
----------关闭transparent_hugepage参数
[root@test01 ~]# vi /etc/default/grub
GRUB_CMDLINE_LINUX=“crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet transparent_hugepage=never”
[root@test01 opt]# grub2-mkconfig -o /boot/grub2/grub.cfg
重启
[root@test01 opt]# cat /sys/kernel/mm/transparent_hugepage/enabled