linux系统优化

Posted 逍遥人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux系统优化相关的知识,希望对你有一定的参考价值。

centos7系列

关闭没用的服务

关闭selinux,配置或关闭防火墙

配置yum源,epel源

下载常用软件

 

修改内核参数

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum install -y wget

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum install -y bash-completion lrzsz  nc axel nmap tree 

systemctl disable firewalld.service

systemctl stop firewalld.service

setenforce 0

sed -i ‘s#SELINUX=enforcing#SELINUX=disabled#g‘ /etc/selinux/config

 

以上是关于linux系统优化的主要内容,如果未能解决你的问题,请参考以下文章