云计算 华为云服务

配置虚拟私有云

云平台架管理

跳板机配置

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 客户端

相关推荐
Yana.nice19 小时前
华为云计算(FusionAccess/FusionCompute/OpenStack)平台
华为云·openstack
红目香薰5 天前
Ascend C 算子:Sigmoid 函数原理深入解析与工程化构建及验证
c语言·开发语言·华为·华为云·昇腾·cann·modelarts
腾科IT教育7 天前
华为云计算运维工程师怎么考?2026年报考攻略
运维·华为云·华为认证·hcip考试·华为hcip考试
巧妹儿10 天前
AI Agent 实战:MySQL 监控指标查询 Skill|华为云 + 腾讯云双兼容可直接复用
python·mysql·ai·大模型·华为云·腾讯云
Mr. G K12 天前
漏洞扫描利器(华为云)
安全·华为云
唱响星河13 天前
对接华为云Obs,上传附件报错cors
华为云·obs
为美好的生活献上中指20 天前
*Java 沉淀重走长征路*之——《Linux 从入门到企业实战:一套六步法,带你打通运维与开发的任督二脉》
java·linux·运维·开发语言·阿里云·华为云·linux命令
猿小猴子24 天前
主流 AI IDE 之一的 华为云码道「CodeArts」 介绍
ide·人工智能·ai·华为云
蜗牛会飞 20241 个月前
大数据时代个人信息保护五大挑战
开发语言·华为云·个人开发·c5全栈
MMendex1 个月前
华为云项目实战day1
linux·服务器·nginx·华为云·ssh·负载均衡