------------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
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/10248.html
標籤:其他數據庫
