【centos使用系列】RHEL8发布,坐等centos8

背景和参考资料

参考资料

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/8.0_release_notes/index
https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/8/html-single/8.0_release_notes/index(机器翻译版)
https://blog.51cto.com/vanehsuan/2392207
https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-mysql-8-0-on-rhel-8.html

背景

正文上面的参考资料所说,5月7号,红帽子公司发布了REDHAT ENTERPRISE LINUX 8(简称RHEL8)。
于是乎,想先体验一把新特性和原有功能,为后面的centos8做技术储备。

rhel8的release note

虚拟机安装RHEL8

下载RHEL8镜像

注册一个redhat的账号,从官网下载RHEL8

虚拟机安装RHEL8

参考https://blog.51cto.com/vanehsuan/2392207做下版本的选择,磁盘的选择,整个过程还是比较顺畅。

#安装后的初步体验

内核版本

采用的之前beta版本用的4.18版本(内核社区好像没有提供本版本的长期支持版)

注册账号订阅仓库

subscription-manager register --username 红帽子账号 --password 密码 --auto-attach
subscription-manager repos --list-enabled

安装mysql8.0

简单安装

dnf clean packages
yum -y install @mysql
systemctl start mysqld


查看日志

2019-05-12T12:45:20.890020Z 0 [System] [MY-013169] [Server] /usr/libexec/mysqld (mysqld 8.0.13) initializing of server in progress as process 40113
2019-05-12T12:45:23.643786Z 5 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2019-05-12T12:45:26.199807Z 0 [System] [MY-013170] [Server] /usr/libexec/mysqld (mysqld 8.0.13) initializing of server has completed
2019-05-12T12:45:28.821217Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.13) starting as process 40159
2019-05-12T12:45:29.877569Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2019-05-12T12:45:29.987015Z 0 [System] [MY-010931] [Server] /usr/libexec/mysqld: ready for connections. Version: '8.0.13' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution.
2019-05-12T12:45:30.206112Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/lib/mysql/mysqlx.sock' bind-address: '::' port: 33060

知道mysql8的root账号密码为空,所以需要登录后,初始化密码。

alter user 'root'@'localhost' identified with mysql_native_password by '123456';
update user set host='%' where user='root';
flush privileges;

初步结论

软件安装这块,除了增加appstream的概念,已经源的控制,和centos7没有太大的差别。