码迷,mamicode.com
首页 > 系统相关 > 详细

linux 基本优化

时间:2020-04-29 12:39:22      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:sys   systemctl   isa   disable   enable   unit   conf   grep   启动服务   

  • 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    禁止蓝牙服务自启动。

linux 基本优化

标签:sys   systemctl   isa   disable   enable   unit   conf   grep   启动服务   

原文地址:https://www.cnblogs.com/woodware/p/12801163.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!