CentOS 7 - mariadb 10.1 ¼³Ä¡ (yum)

   Á¶È¸ 10690   Ãßõ 0    

https://mariadb.com/kb/en/mariadb/yum/

 

/etc/yum.repos.d/mariadb.repo 에 다음과 같이 repo를 구성

 

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

 

sudo yum install MariaDB-server MariaDB-client

 

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation (secure 설치)

 

/etc/security/limits.conf를 수정 합니다. 파일의 마지막에 추가.

mysql   soft   nproc   8192
mysql   hard   nproc   16384

 

mysql   soft   nofile  8192
mysql   hard   nofile  65536

 

swap을 안쓰게 설정

https://mariadb.com/kb/en/mariadb/configuring-swappiness/

 

sysctl -w vm.swappiness=0  (명령어)

 

/etc/sysctl.conf 에 아래의 라인을 추가

vm.swappiness = 0

 

설정은 https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/

/etc/my.cnf

/etc/my.cnf.d

- to be continue -
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


PDS
Á¦¸ñPage 7/12
2009-06   19181   ¹Ú¿ì¿­
2011-02   17164   Bearth
2013-07   19395   ȸ¿øK
2013-12   26339   ±èȲÁß
2014-07   23758   user
2015-04   30680   ¸¾¸ð½º
2018-06   8383   ȸ¿øK
2020-03   5159   µö·¯´×¼­¹ö
2022-10   33893   È︶
04-01   3421   °ú¹¬Çѳë¼÷ÀÚ
2009-06   18336   ¾Æ¹Î¼ö
2011-05   15617   ±èÇö¿õ
2013-07   20553   ±Ù¿øe
2019-06   9592   Æä³Ñ9500¾Æ¡¦
2018-08   10411   »õÇϾᱸ¸§
2018-07   9174   Àεð°í
2020-03   4166   µö·¯´×¼­¹ö
2020-11   4147   °æ¹ÚÇѽùÎ
2022-06   20744   ¾ÈÇü°ï
2009-10   20268   ¿©ÁÖÀÌ»óµ·