linux 基本优化

  • selinux 优化

             vi /etc/selinux/config
             SELINUX=disabled   关闭selinux
             需要重启生效
    • sestatus -v    查看selinux状态
  • 防火墙优化

    • systemctl stop firewalld             关闭防火墙
    • systemctl disabled firewalld       禁止防火墙服务开机自启动。
  • 自启动服务优化

    • systemctl list-unit-files | grep enable    查看自启动服务
      禁用自启动服务
      • systemctl stop bluetooth
      • systemctl disable bluetooth    禁止蓝牙服务自启动。
原文地址:https://www.cnblogs.com/woodware/p/12801163.html