安装完CentOS后需要更新的源及其指令

  • 亚历山高
  • 2020-03-16
  • 241 人已阅读

安装完CentOS后,首先要修改更新源,修改更新yum源的命令如下:
curl -s -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

curl -s -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 psmisc net-tools bash-completion vim-enhanced -y

Top