下载

安装

安装前先选一个当前网段下的空闲ip。

安装后默认是可以使用xshell连接的。

配置

ping www.baidu.com
nameserver

sshd https://blog.csdn.net/qq_43287658/article/details/126364632

关闭防火墙

开机关闭防火墙。

配置yum源:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

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

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.bak

# 扩展包
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo

yum clean all && yum makecache
作者:admin  创建时间:2022-04-18 19:17
最后编辑:admin  更新时间:2025-09-19 10:08