最近心血来潮,本着不要怂梭哈的态度,我直接把CentOS7换成了RHEL8,发现这玩意真是坑爹,啥都没有,不是在找源的路上就是在编译的路上,至于docker嘛,docker官方的一键脚本都不能够正常运行...实在是坑爹,写一下我在RHEL8中踩的坑,希望大家少走弯路,希望大家不要用RHEL8,这玩意还得注册,Ubuntu不香么。
1.没有Screen/nload等主流软件
你说你rhel没有nload我忍了,但是没有screen,怎么忍???
这他妈还能用吗,我跑个脚本都得写个systemd?
后来我发现,其实RHEL8类似于CentOS8,就是得额外添加EPEL源...很坑爹吧。
安装命令如下
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
然后你就能愉快的安装screen等主流软件了
2.Docker一键脚本用不了怎么办
俗话说万物皆可docker,但目前问题来了,rhel8用不了一键脚本。
没办法,我忍了,毕竟花了九牛二虎之力才装好的rhel,既然一键用不了,那就手动添加源吧。
大家复制粘贴即可
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sed -i s/7/8/g /etc/yum.repos.d/docker-ce.repo
yum update && yum install docker-ce
3.库文件不够怎么办
我发现RHEL8真是坑爹中的坑爹。不是给企业用的系统吗,所以你们Redhat就只保留了一小部分库,其他全部给了CentOS?怪不得你们要叫停CentOS了,原来之前CentOS才是RHEL,RHEL才是CentOS测试版。
既然库不够用,那只能添加CentOS8的源来用了。
新建一个文件/etc/yum.repos.d/Centos-8.repo,复制粘贴,yum update
[base]
name=CentOS-8 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/BaseOS/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/BaseOS/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
#additional packages that may be useful
[extras]
name=CentOS-8 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/extras/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/extras/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/extras/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-8 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/centosplus/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/centosplus/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=CentOS-8 - PowerTools - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/PowerTools/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/PowerTools/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=CentOS-8 - AppStream - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/AppStream/$basearch/os/
http://mirrors.aliyuncs.com/centos/8/AppStream/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
mirrors.aliyun.com请根据服务器所在地点替换。
总结,普通人没事干别用RHEL8,浪费时间生命。
暂无评论