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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值