[root@localhost ~]# yum install httpd
[root@localhost ~]# yum install libjpeg* libpng* freetype* gd-* gdbm-devel libtermcap-devel pcre-devel mod_ssl
MPM 유형 확인
[root@localhost ~]# apachectl -V | grep MPM
[root@localhost ~]# vi /etc/httpd/conf.modules.d/00-mpm.conf
# MPM 유형 이벤트 모듈로 변경
LoadModule mpm_event_module modules/mod_mpm_event.so
[root@localhost ~]# apachectl -V | grep MPM
Server MPM: event
[root@localhost ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Jan 27 2023 17:36:29
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=http
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=https
[root@localhost ~]# firewall-cmd --reload
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl status httpd
[root@localhost ~]# systemctl enable httpd
[root@localhost ~]# vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.11 CentOS repository list - created 2023-03-15 08:21 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch
baseurl = https://tw1.mirror.blendbyte.net/mariadb/yum/10.11/centos/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://tw1.mirror.blendbyte.net/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
[root@localhost ~]# chcon system_u:object_r:system_conf_t:s0 /etc/yum.repos.d/MariaDB.repo
[root@localhost ~]# yum list | grep Maria
[root@localhost ~]# yum install MariaDB-server MariaDB-client