开发者社区 问答 正文

OceanBase中add-repo 问题是直接obd web启动的为啥没有了远程仓库呢?我按

OceanBase中add-repo Add remote mirror repository file.问题是直接obd web启动的为啥没有了远程仓库呢?我按文档执行过yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo,它提示说保存在etc下了image.png

展开
收起
真的很搞笑 2023-06-20 08:13:41 133 分享 版权
来自: OceanBase
2 条回答
写回答
取消 提交回答
  • vim ~/.obd/mirror/remote/OceanBase.repo 添加以下信息 看下 [oceanbase.community.stable] name = OceanBase-community-stable-el$releasever baseurl = http://mirrors.aliyun.com/oceanbase/community/stable/el/$releasever/$basearch/ enabled = 0 gpgcheck = 1 gpgkey = http://mirrors.aliyun.com/oceanbase/RPM-GPG-KEY-OceanBase

    [oceanbase.development-kit] name = OceanBase-development-kit-el$releasever baseurl = http://mirrors.aliyun.com/oceanbase/development-kit/el/$releasever/$basearch/ enabled = 0 gpgcheck = 1 gpgkey = http://mirrors.aliyun.com/oceanbase/RPM-GPG-KEY-OceanBaseobd mirror add-repo urlxxxx 用这个,此回答整理自钉群“[社区]技术答疑群OceanBase”

    2023-06-20 08:56:07
    赞同 展开评论
  • 您好,如果您已经执行了"yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo",那么该命令会将OceanBase.repo文件保存在/etc/yum.repos.d/目录下。您可以通过以下命令来查看该文件是否已经存在:

    ls /etc/yum.repos.d/OceanBase.repo

    如果该文件已经存在,那么您可以尝试执行以下命令来更新yum缓存并安装OceanBase:

    yum clean all && yum makecache && yum install -y oceanbase

    如果您仍然无法从远程仓库获取OceanBase软件包,请检查您的网络配置是否正确,是否存在网络访问限制等问题。

    2023-06-20 08:31:14
    赞同 展开评论