云计算 华为云服务

配置虚拟私有云

云平台架管理

跳板机配置

ansible 管理主机

复制代码
dnf install -y ansible-core glibc-langpack-zh  
ssh-keygen
 chmod 0400 /root/.ssh/id_rsa
ssh-copy-id -i /root/.ssh/id_rsa.pub 192.168.1.125
ansible --version

代理 Yum 仓库

复制代码
dnf install -y nginx
vim /etc/nginx/default.d/dnf_proxy.conf
resolver 100.125.1.250 100.125.129.250 valid=5 ipv6=off;
location ~ ^/rockylinux/(.*)$ { 
proxy_pass https://repo.huaweicloud.com/rockylinux/$1;
}
systemctl enable --now nginx

私有 Yum 仓库

dnf install -y createrepo

复制代码
mkdir -p /var/localrepo
createrepo --update /var/localrepo
ln -s /var/localrepo /usr/share/nginx/html/

配置 Yum 客户端

相关推荐
youtootech5 天前
HarmonyOS 实战教程(八):个人中心与华为云服务集成 —— 以「柚兔自测量表」为例
华为·华为云·harmonyos
陈天伟教授9 天前
华为云 阿里云 腾讯 WorkBuddy的工具对比
阿里云·华为云·云计算
William Dawson11 天前
【华为云 MRS Redis 安全集群 Kerberos 认证接入实战(Spring Boot \+ Jedis)】
redis·安全·华为云
William Dawson14 天前
【国产化改造实战|Spring Boot对接华为云MRS Redis Kerberos认证终极踩坑指南】
spring boot·redis·华为云
Database_Cool_15 天前
阿里云 PolarDB vs 华为云 GaussDB/TaurusDB:MySQL 生态云数据库选型指南
数据库·阿里云·华为云
2601_962072551 个月前
李梦娇常识4600问|题库|打印版
sql·华为od·华为·c#·华为云·.net·harmonyos
烂白菜1 个月前
智码美形:华为云码道 × UI-UX-Pro-Max 高品质界面智能生成实践
ui·华为云·ux
容器魔方2 个月前
Karmada v1.18 版本发布!新增混合云溢出式调度能力
人工智能·云原生·容器·华为云·云计算
DS小龙哥2 个月前
基于ESP32设计的智能养蜂监测系统
stm32·单片机·嵌入式硬件·物联网·华为云
江华森2 个月前
JumpServer v4.10.16-ce 华为云 ECS 实战部署全记录
华为云