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]#

  • 相关阅读:
    Django搭建环境
    python切片
    python数据类型
    jquery 淡入淡出属性
    Jquery Tab切换
    jQuery Clone方法
    jQuery属性操作
    python 变量以及循环
    获取网站目录
    posting-jsonobject-with-httpclient-from-web-api
  • 原文地址:https://www.cnblogs.com/endv/p/9023050.html
Copyright © 2011-2022 走看看