-
selinux 优化
vi /etc/selinux/config
SELINUX=disabled 关闭selinux
需要重启生效
-
防火墙优化
- systemctl stop firewalld 关闭防火墙
- systemctl disabled firewalld 禁止防火墙服务开机自启动。
-
自启动服务优化
- systemctl list-unit-files | grep enable 查看自启动服务
禁用自启动服务
- systemctl stop bluetooth
- systemctl disable bluetooth 禁止蓝牙服务自启动。
linux 基本优化
原文:https://www.cnblogs.com/woodware/p/12801163.html