华为云自定义私有镜像

Posted jeffzhao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为云自定义私有镜像相关的知识,希望对你有一定的参考价值。

一,自定义yum源

 mkdir -p /etc/yum.repos.d/repo_bak/

mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_bak/

 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo

yum makecache

二,安装工具包

yum -y install net-tools lftp rsync psmisc vim bash-completion

三,优化系统服务

systemctl stop ntpd postfix

yum -y remove ntp postfix

四,修改时间服务器

vim /etc/chrony.conf

server ntp.myhuaweicloud.com iburst

systemctl enable chronyd

systemctl start chronyd

以上是关于华为云自定义私有镜像的主要内容,如果未能解决你的问题,请参考以下文章