首页 > 其他 > 详细

CentOS7优化

时间:2019-07-27 12:45:00      阅读:97      评论:0      收藏:0      [点我收藏+]
  1. 下载常用的rpm
    yum -y install bash-completion lrzsz ntpdate sysstat net-tools tree wget vim -y
  2. 配置阿里的yum源
    CentOS 6
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    或者
    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

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

  3. 网卡的配置
    BOOTPROTO=static
    ONBOOT=yes
    IPADDR=
    NETMASK=
    GATEWAY=
    DNS1=223.5.5.5
    DNS2=223.6.6.6

  4. 修改selinux
  5. 关闭firewalld

CentOS7优化

原文:https://www.cnblogs.com/plf-Jack/p/11254308.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!