配置yum源与安装基础软件

阿里yum源
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 https://mirrors.aliyun.com/repo/Centos-7.repo
第三方epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

更新所有软件到最新
yum  update  -y

安装常用命令
yum install tree nmap dos2unix lrzsz nc lsof wget tcpdump htop iftop iotop sysstat nethogs -y
yum install psmisc net-tools bash-completion vim-enhanced -y

配置网卡

vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
BROWSER_ONLY=no
BOOTPROTO=static
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.10.10
GATEWAY=192.168.10.2
DNS1=8.8.8.8
DNS2=114.114.114.114
NETMASK=255.255.255.0

修改完成保存退出!
重启网卡

results matching ""

    No results matching ""