zoukankan      html  css  js  c++  java
  • Linux 安装 yum

     1、使用RedHat系统不能正常使用yum安装
    由于RedHat没有注册,所有不能使用它自身的资源更新, 

    查看安装源是否安装:

    # rpm –qa|grep yum

    卸载安装源:

    # rpm –e –nodeps yum

    清理缓存:

    # yum clean all

    将服务器软件信息保存在本地,提高搜索安装效率:

    # yum makecache

    2、修改yum的源文件

    #cd /etc/yum.repos.d

    使用网易163的yum源: http://mirrors.163.com/.help/centos.html

    #wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

    删除文件:

    #rm -f /etc/yum.repos.d/CentOS-Base.repo

    重命名文件

    #mv CentOS7-Base-163.repo CentOS-Base.repo

    Centos bt 安装脚本

    https://www.bt.cn/btcode.html#install
      

    #yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

    ==================================================================

    Congratulations! Install succeeded!
    ==================================================================
    Bt-Panel: http://105.xxx.xxx.xxx:8888
    username: admin
    password: 3efc178b
    Warning:
    If you cannot access the panel,
    release the following port (8888|888|80|443|20|21) in the security group
    ==================================================================
    Time consumed: 6 Minute!
    [root@localhost yum.repos.d]#

  • 相关阅读:
    【6.24校内test】T1 江城唱晚
    【6.20校内test】
    【洛谷p1983】车站分级
    【洛谷p2239】螺旋矩阵
    【6.18校内test】T2分数线划定
    【6.18校内test】T1多项式输出
    【洛谷p1981】表达式求值
    【洛谷p1077】摆花
    【洛谷p1158】导弹拦截
    博客园 api
  • 原文地址:https://www.cnblogs.com/endv/p/9023050.html
Copyright © 2011-2022 走看看