JooTC
mariadb current version

CentOS 7 MariaDB 설치

CentOS 7 MariaDB 설치


CentOS 7에서 MariaDB를 설치하려면 아래 방법을 따라해주시면 됩니다.

먼저, yum repository (yum 패키지 저장소) 목록에 Maria DB 저장소를 추가해야 합니다.

아래 명령어를 입력하여 /etc/yum.repos.d/MariaDB.repo 파일을 새로 만듭니다.

vim /etc/yum.repos.d/MariaDB.repo

파일 내에는 아래와 같이 내용을 추가합니다.

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos74-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

baseurl 항목에 있는 10.2 는 MariaDB의 버전을 뜻합니다. 현재 안정된 버전은 아래 링크에서 확인할 수 있습니다.

https://mariadb.com/downloads/mariadb-tx

mariadb current version

버전이 확인되었다면, 아래 링크에 들어가서 관련 패키지가 들어있는지 확인합니다. CentOS 7은 yum 패키지 관리자를 사용하기 때문에 yum.mariadb.org 로 들어가주시면 됩니다. amd64 항목이 있는지 확인합니다. CentOS 7.4 버전(2018년 5월 기준 최신 버전)을 사용 중이라면 Centos74-amd64/ 가 있는지 확인하면 됩니다.
http://yum.mariadb.org/10.2/

mariadb repository link

자신의 운영체제에 맞는 내용인 centos#-###/ 를 baseurl의 10.2/ 뒤에 붙여넣습니다. 따라서 위와 같이 http://yum.mariadb.org/10.2/centos74-amd64 의 링크가 만들어집니다.

MariaDB.repo 파일을 저장하고 아래 명령어로 yum 패키지 관리자를 사용하여 MariaDB를 설치합니다. MariaDB-Server 로 입력해주시면 패키지가 검색될 것입니다.

$ sudo yum install MariaDB-Server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.wdc1.us.leaseweb.net
 * epel: mirror.cogentco.com
 * extras: ftpmirror.your.org
 * remi-php70: repo1.ash.innoscale.net
 * remi-safe: repo1.ash.innoscale.net
 * updates: repos.mia.quadranet.com
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.2.15-1.el7.centos will be installed
--> Processing Dependency: perl(DBI) for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: galera for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: MariaDB-client for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: lsof for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: MariaDB-server-10.2.15-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.2.15-1.el7.centos will be installed
---> Package galera.x86_64 0:25.3.23-1.rhel7.el7.centos will be installed
--> Processing Dependency: libboost_program_options.so.1.53.0()(64bit) for package: galera-25.3.23-1.rhel7.el7.centos.x86_64
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package lsof.x86_64 0:4.87-5.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
--> Running transaction check
---> Package boost-program-options.x86_64 0:1.53.0-27.el7 will be installed
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                              Arch                                Version                                                 Repository                            Size
=============================================================================================================================================================================================
Installing:
 MariaDB-server                                       x86_64                              10.2.15-1.el7.centos                                    mariadb                              109 M
Installing for dependencies:
 MariaDB-client                                       x86_64                              10.2.15-1.el7.centos                                    mariadb                               48 M
 boost-program-options                                x86_64                              1.53.0-27.el7                                           base                                 156 k
 galera                                               x86_64                              25.3.23-1.rhel7.el7.centos                              mariadb                              8.0 M
 libaio                                               x86_64                              0.3.109-13.el7                                          base                                  24 k
 lsof                                                 x86_64                              4.87-5.el7                                              base                                 331 k
 perl-Compress-Raw-Bzip2                              x86_64                              2.061-3.el7                                             base                                  32 k
 perl-Compress-Raw-Zlib                               x86_64                              1:2.061-4.el7                                           base                                  57 k
 perl-DBI                                             x86_64                              1.627-4.el7                                             base                                 802 k
 perl-Data-Dumper                                     x86_64                              2.145-3.el7                                             base                                  47 k
 perl-IO-Compress                                     noarch                              2.061-2.el7                                             base                                 260 k
 perl-Net-Daemon                                      noarch                              0.48-5.el7                                              base                                  51 k
 perl-PlRPC                                           noarch                              0.2020-14.el7                                           base                                  36 k

Transaction Summary
=============================================================================================================================================================================================
Install  1 Package (+12 Dependent packages)

Total download size: 167 M
Installed size: 706 M
Is this ok [y/d/N]:

 

구독
알림
guest

0 Comments
Inline Feedbacks
모든 댓글 보기
0
이 포스트에 대한 의견을 남겨주세요!x