YUM/DNF
yum group install "GNOME Desktop" -y
[root@serverA ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@serverA ~]# reboot
GUI환경에서는 최소 1개 이상의 일반 사용자 계정을 요구한다.
[root@serverA ~]# yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
Loaded plugins: fastestmirror, langpacks
mysql80-community-release-el7-7.noarch.rpm | 11 kB 00:00:00
Examining /var/tmp/yum-root-TJiZ7H/mysql80-community-release-el7-7.noarch.rpm: mysql80-community-release-el7-7.noarch
Marking /var/tmp/yum-root-TJiZ7H/mysql80-community-release-el7-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql80-community-release.noarch 0:el7-7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================
Package Arch Version
Repository Size
===================================================================================
Installing:
mysql80-community-release
noarch el7-7 /mysql80-community-release-el7-7.noarch 10 k
Transaction Summary
===================================================================================
Install 1 Package
Total size: 10 k
Installed size: 10 k
Is this ok [y/d/N]: y
mysql8.0 커뮤니티(오픈소스) 설치 명령어
[root@serverA ~]# yum install mysql-community-server
[root@serverA ~]# systemctl start mysqld
[root@serverA ~]# systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2022-11-07 17:23:09 KST; 22s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 3492 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUC CESS)
Main PID: 3576 (mysqld)
Status: "Server is operational"
Tasks: 39
CGroup: /system.slice/mysqld.service
└─3576 /usr/sbin/mysqld
Nov 07 17:22:26 serverA systemd[1]: Starting MySQL Server...
Nov 07 17:23:09 serverA systemd[1]: Started MySQL Server.
[root@serverA ~]# less /var/log/mysqld.log
[root@serverA ~]# grep 'temporary password' /var/log/mysqld.log