执行:
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
wget: command not found
执行:(安装wget命令)
yum install wget
执行:(更新yum源为阿里镜像)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
执行netstat 命令查看启动端口
netstat -anp 可以看到pid
netstat -tln 不能看到进程id