Server

APM Install (CentOS 6.7 64bit + Apache2.4 + MariaDB10.1 + Php 7.*)

Author: Thorpe Lee(koangbok@gmail.com), Front&Back-end Developer, posted on 2016-08-08 09:40:30

Print - 프린트하기


DESCRIPTION

Notice

Steps : Install CentOS -> Php -> MariaDB 

Application and Envirment

OS CentOS 6.7 64bit
Apache 2.4
MariaDb 10.1
Php 7.0

 

Common


root@shell:~$ yum update

Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
 * base: ftp.daumkakao.com
 * extras: ftp.daumkakao.com
 * updates: ftp.daumkakao.com
base                                                                                    | 3.7 kB     00:00     
base/primary_db                                                                         | 4.7 MB     00:00     
extras                                                                                  | 3.4 kB     00:00     
extras/primary_db                                                                       |  37 kB     00:00     
updates                                                                                 | 3.4 kB     00:00     
updates/primary_db                                                                      | 1.4 MB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package audit.x86_64 0:2.3.7-5.el6 will be updated
---> Package audit.x86_64 0:2.4.5-3.el6 will be an update
---> Package audit-libs.x86_64 0:2.3.7-5.el6 will be updated
---> Package audit-libs.x86_64 0:2.4.5-3.el6 will be an update
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
중간 생략
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade      73 Package(s)

Total download size: 114 M
Is this ok [y/N]: <= 여기에 y를 입력하신후 업데이트를 계속 진행하세요.

업데이트 진행을 위해 Y 입력

root@shell:~$ yum install git rdate zip unzip wget

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile        | 4.6 kB     00:00      * base: centos.mirror.cdnetworks.com
 * epel: mirror.premi.st
 * extras: centos.mirror.cdnetworks.com
 * updates: centos.mirror.cdnetworks.com
 * webtatic: sp.repo.webtatic.com
~~~~~~~~~~~~~~~~중간생략~~~~~~~~~~~~~~~~~~~~
Y :
~~~~~~~~~~~~~~~~중간생략~~~~~~~~~~~~~~~~~~~~

설치 진행을 위해 Y 입력

INSTALL APPLICAION

root@shell:~$vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing  <= 주석처리후 아래와 같이 변경
SELINUX=disabled  
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

root@shell:~$reboot

Broadcast message from root@amicogenCRM
	(/dev/pts/0) at 9:46 ...

The system is going down for reboot NOW!
[root@amicogenCRM ~]# 
Connection closed by foreign host.

Disconnected from remote host(06_아미코젠CRM) at 09:46:34.

Type `help' to learn how to use Xshell prompt.

root@shell:~$ crontab -e

rdate -s time.bora.net


APM설치 (WEBSTIC를 이용한 PHP 7.0.* 버전 설치)


Repo URL 적용


root@shell:~$ rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm(을)를 복구합니다
경고: /var/tmp/rpm-tmp.kkVz6J: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
준비 중...               ########################################### [100%]
   1:epel-release           ########################################### [100%]


root@shell:~$ rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

https://mirror.webtatic.com/yum/el6/latest.rpm(을)를 복구합니다
경고: /var/tmp/rpm-tmp.gu3KQF: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
준비 중...               ########################################### [100%]
   1:webtatic-release       ########################################### [100%]

PHP 설치 


root@shell:~$ yum install php70w 

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
중간생략
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Install       9 Package(s)

Total download size: 7.6 M
Installed size: 28 M
Is this ok [y/N]:   <= 여기에 y를 입력해주세요.

위에서 Y값을 넣었다면 이제 아래와 같이 패키지를 설치하게 됩니다. 아래와 같이 패키지가 꼭 9개가 나와야 하는것은 아닙니다. 

Downloading Packages:
(1/9): apr-1.3.9-5.el6_2.x86_64.rpm                                                                          | 123 kB     00:00     
(2/9): apr-util-1.3.9-3.el6_0.1.x86_64.rpm                                                                   |  87 kB     00:00     
(3/9): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm                                                              |  15 kB     00:00     
(4/9): httpd-2.2.15-54.el6.centos.x86_64.rpm                                                                 | 833 kB     00:00     
(5/9): httpd-tools-2.2.15-54.el6.centos.x86_64.rpm                                                           |  79 kB     00:00     
(6/9): mailcap-2.1.31-2.el6.noarch.rpm                                                                       |  27 kB     00:00     
(7/9): php70w-7.0.9-1.w6.x86_64.rpm                                                                          | 2.7 MB     00:00     
(8/9): php70w-cli-7.0.9-1.w6.x86_64.rpm                                                                      | 2.6 MB     00:00     
(9/9): php70w-common-7.0.9-1.w6.x86_64.rpm                                                                   | 1.1 MB     00:00     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               3.8 MB/s | 7.6 MB     00:02     
경고: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy
Importing GPG key 0xCF4C4FF9:
 Userid : Andy Thompson 
 Package: webtatic-release-6-6.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy
Is this ok [y/N]: y   <= 여기서 Y값을 넣어준다.

Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : apr-1.3.9-5.el6_2.x86_64                                                                                         1/9 
  Installing : apr-util-1.3.9-3.el6_0.1.x86_64                                                                                  2/9 
  Installing : php70w-common-7.0.9-1.w6.x86_64                                                                                  3/9 
  Installing : php70w-cli-7.0.9-1.w6.x86_64                                                                                     4/9 
  Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                                                                             5/9 
  Installing : httpd-tools-2.2.15-54.el6.centos.x86_64                                                                          6/9 
  Installing : mailcap-2.1.31-2.el6.noarch                                                                                      7/9 
  Installing : httpd-2.2.15-54.el6.centos.x86_64                                                                                8/9 
  Installing : php70w-7.0.9-1.w6.x86_64                                                                                         9/9 
  Verifying  : php70w-common-7.0.9-1.w6.x86_64                                                                                  1/9 
  Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.x86_64                                                                             2/9 
  Verifying  : apr-1.3.9-5.el6_2.x86_64                                                                                         3/9 
  Verifying  : httpd-tools-2.2.15-54.el6.centos.x86_64                                                                          4/9 
  Verifying  : php70w-7.0.9-1.w6.x86_64                                                                                         5/9 
  Verifying  : mailcap-2.1.31-2.el6.noarch                                                                                      6/9 
  Verifying  : php70w-cli-7.0.9-1.w6.x86_64                                                                                     7/9 
  Verifying  : httpd-2.2.15-54.el6.centos.x86_64                                                                                8/9 
  Verifying  : apr-util-1.3.9-3.el6_0.1.x86_64                                                                                  9/9 

Installed:
  php70w.x86_64 0:7.0.9-1.w6                                                                                                        

Dependency Installed:
  apr.x86_64 0:1.3.9-5.el6_2              apr-util.x86_64 0:1.3.9-3.el6_0.1             apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1    
  httpd.x86_64 0:2.2.15-54.el6.centos     httpd-tools.x86_64 0:2.2.15-54.el6.centos     mailcap.noarch 0:2.1.31-2.el6             
  php70w-cli.x86_64 0:7.0.9-1.w6          php70w-common.x86_64 0:7.0.9-1.w6            

Complete!


root@shell:~$ php -v

PHP 7.0.4 (cli) (built: Mar  5 2016 01:22:48) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

 

위와 같이 나왔다면 기본적으로  php는 설치되었습니다. 그러나 php개발하다보면 많은  extension함수를 사용해야할때가 많아서 아래와 같이 자주 쓰는 함수에 대해서 extension 을 설치합니다. 옵션사항입니다. 필요에 맞게 가공해서 설치하세요.

root@shell:~$ yum install php70w-fpm php70w-opcache php70w-common \
php70w-memcache php70w-gd php70w-mcrypt php70w-mysql php70w-odbc php70w-opcache \
php70w-pdo php70w-process php70w-mbstring php70w-intl php70w-devel php70w-xml

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.daumkakao.com
 * epel: mirror.premi.st
 * extras: ftp.daumkakao.com
 * updates: ftp.daumkakao.com
 * webtatic: sp.repo.webtatic.com
Package php70w-common-7.0.9-1.w6.x86_64 already installed and latest version
No package php70w-memcache available.
Resolving Dependencies
--> Running transaction check
---> Package php70w-devel.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: pcre-devel(x86-64) for package: php70w-devel-7.0.9-1.w6.x86_64
--> Processing Dependency: automake for package: php70w-devel-7.0.9-1.w6.x86_64
--> Processing Dependency: autoconf for package: php70w-devel-7.0.9-1.w6.x86_64
---> Package php70w-fpm.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-gd.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: php70w-gd-7.0.9-1.w6.x86_64
---> Package php70w-intl.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: libicuuc.so.42()(64bit) for package: php70w-intl-7.0.9-1.w6.x86_64
--> Processing Dependency: libicuio.so.42()(64bit) for package: php70w-intl-7.0.9-1.w6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: php70w-intl-7.0.9-1.w6.x86_64
--> Processing Dependency: libicudata.so.42()(64bit) for package: php70w-intl-7.0.9-1.w6.x86_64
---> Package php70w-mbstring.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-mcrypt.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php70w-mcrypt-7.0.9-1.w6.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: php70w-mcrypt-7.0.9-1.w6.x86_64
---> Package php70w-mysql.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-odbc.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: libodbc.so.2()(64bit) for package: php70w-odbc-7.0.9-1.w6.x86_64
---> Package php70w-opcache.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-pdo.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-process.x86_64 0:7.0.9-1.w6 will be installed
---> Package php70w-xml.x86_64 0:7.0.9-1.w6 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php70w-xml-7.0.9-1.w6.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
---> Package freetype.x86_64 0:2.3.11-17.el6 will be installed
---> Package libX11.x86_64 0:1.6.3-2.el6 will be installed
--> Processing Dependency: libX11-common = 1.6.3-2.el6 for package: libX11-1.6.3-2.el6.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.3-2.el6.x86_64
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package libicu.x86_64 0:4.2.1-14.el6 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed
---> Package libmcrypt.x86_64 0:2.5.8-9.el6 will be installed
---> Package libpng.x86_64 2:1.2.49-2.el6_7 will be installed
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package libxslt.x86_64 0:1.1.26-2.el6_3.1 will be installed
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed
---> Package unixODBC.x86_64 0:2.2.14-14.el6 will be installed
--> Running transaction check
---> Package libX11-common.noarch 0:1.6.3-2.el6 will be installed
---> Package libxcb.x86_64 0:1.11-2.el6 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.11-2.el6.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.6-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                            Arch                      Version                             Repository                   Size
====================================================================================================================================
Installing:
 php70w-devel                       x86_64                    7.0.9-1.w6                          webtatic                    2.6 M
 php70w-fpm                         x86_64                    7.0.9-1.w6                          webtatic                    1.3 M
 php70w-gd                          x86_64                    7.0.9-1.w6                          webtatic                    125 k
 php70w-intl                        x86_64                    7.0.9-1.w6                          webtatic                    158 k
 php70w-mbstring                    x86_64                    7.0.9-1.w6                          webtatic                    946 k
 php70w-mcrypt                      x86_64                    7.0.9-1.w6                          webtatic                     22 k
 php70w-mysql                       x86_64                    7.0.9-1.w6                          webtatic                     72 k
 php70w-odbc                        x86_64                    7.0.9-1.w6                          webtatic                     44 k
 php70w-opcache                     x86_64                    7.0.9-1.w6                          webtatic                    114 k
 php70w-pdo                         x86_64                    7.0.9-1.w6                          webtatic                     79 k
 php70w-process                     x86_64                    7.0.9-1.w6                          webtatic                     32 k
 php70w-xml                         x86_64                    7.0.9-1.w6                          webtatic                    109 k
Installing for dependencies:
 autoconf                           noarch                    2.63-5.1.el6                        base                        781 k
 automake                           noarch                    1.11.1-4.el6                        base                        550 k
 freetype                           x86_64                    2.3.11-17.el6                       base                        361 k
 libX11                             x86_64                    1.6.3-2.el6                         base                        586 k
 libX11-common                      noarch                    1.6.3-2.el6                         base                        169 k
 libXau                             x86_64                    1.0.6-4.el6                         base                         24 k
 libXpm                             x86_64                    3.5.10-2.el6                        base                         51 k
 libicu                             x86_64                    4.2.1-14.el6                        base                        4.9 M
 libjpeg-turbo                      x86_64                    1.2.1-3.el6_5                       base                        174 k
 libmcrypt                          x86_64                    2.5.8-9.el6                         epel                         96 k
 libpng                             x86_64                    2:1.2.49-2.el6_7                    base                        182 k
 libtool-ltdl                       x86_64                    2.2.6-15.5.el6                      base                         44 k
 libxcb                             x86_64                    1.11-2.el6                          base                        142 k
 libxslt                            x86_64                    1.1.26-2.el6_3.1                    base                        452 k
 pcre-devel                         x86_64                    7.8-7.el6                           base                        320 k
 unixODBC                           x86_64                    2.2.14-14.el6                       base                        378 k

Transaction Summary
====================================================================================================================================
Install      28 Package(s)

Total download size: 15 M
Installed size: 56 M
Is this ok [y/N]: y
Downloading Packages:
(1/28): autoconf-2.63-5.1.el6.noarch.rpm                                                                     | 781 kB     00:00     
(2/28): automake-1.11.1-4.el6.noarch.rpm                                                                     | 550 kB     00:00     
(3/28): freetype-2.3.11-17.el6.x86_64.rpm                                                                    | 361 kB     00:00     
(4/28): libX11-1.6.3-2.el6.x86_64.rpm                                                                        | 586 kB     00:00     
(5/28): libX11-common-1.6.3-2.el6.noarch.rpm                                                                 | 169 kB     00:00     
(6/28): libXau-1.0.6-4.el6.x86_64.rpm                                                                        |  24 kB     00:00     
(7/28): libXpm-3.5.10-2.el6.x86_64.rpm                                                                       |  51 kB     00:00     
(8/28): libicu-4.2.1-14.el6.x86_64.rpm                                                                       | 4.9 MB     00:00     
(9/28): libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm                                                               | 174 kB     00:00     
(10/28): libmcrypt-2.5.8-9.el6.x86_64.rpm                                                                    |  96 kB     00:00     
(11/28): libpng-1.2.49-2.el6_7.x86_64.rpm                                                                    | 182 kB     00:00     
(12/28): libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm                                                              |  44 kB     00:00     
(13/28): libxcb-1.11-2.el6.x86_64.rpm                                                                        | 142 kB     00:00     
(14/28): libxslt-1.1.26-2.el6_3.1.x86_64.rpm                                                                 | 452 kB     00:00     
(15/28): pcre-devel-7.8-7.el6.x86_64.rpm                                                                     | 320 kB     00:00     
(16/28): php70w-devel-7.0.9-1.w6.x86_64.rpm                                                                  | 2.6 MB     00:00     
(17/28): php70w-fpm-7.0.9-1.w6.x86_64.rpm                                                                    | 1.3 MB     00:00     
(18/28): php70w-gd-7.0.9-1.w6.x86_64.rpm                                                                     | 125 kB     00:00     
(19/28): php70w-intl-7.0.9-1.w6.x86_64.rpm                                                                   | 158 kB     00:00     
(20/28): php70w-mbstring-7.0.9-1.w6.x86_64.rpm                                                               | 946 kB     00:00     
(21/28): php70w-mcrypt-7.0.9-1.w6.x86_64.rpm                                                                 |  22 kB     00:00     
(22/28): php70w-mysql-7.0.9-1.w6.x86_64.rpm                                                                  |  72 kB     00:00     
(23/28): php70w-odbc-7.0.9-1.w6.x86_64.rpm                                                                   |  44 kB     00:00     
(24/28): php70w-opcache-7.0.9-1.w6.x86_64.rpm                                                                | 114 kB     00:00     
(25/28): php70w-pdo-7.0.9-1.w6.x86_64.rpm                                                                    |  79 kB     00:00     
(26/28): php70w-process-7.0.9-1.w6.x86_64.rpm                                                                |  32 kB     00:00     
(27/28): php70w-xml-7.0.9-1.w6.x86_64.rpm                                                                    | 109 kB     00:00     
(28/28): unixODBC-2.2.14-14.el6.x86_64.rpm                                                                   | 378 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               4.5 MB/s |  15 MB     00:03     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) 
 Package: epel-release-6-8.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php70w-pdo-7.0.9-1.w6.x86_64                                                                                    1/28 
  Installing : autoconf-2.63-5.1.el6.noarch                                                                                    2/28 
  Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64                                                                              3/28 
  Installing : unixODBC-2.2.14-14.el6.x86_64                                                                                   4/28 
  Installing : automake-1.11.1-4.el6.noarch                                                                                    5/28 
  Installing : libxslt-1.1.26-2.el6_3.1.x86_64                                                                                 6/28 
  Installing : libX11-common-1.6.3-2.el6.noarch                                                                                7/28 
  Installing : libXau-1.0.6-4.el6.x86_64                                                                                       8/28 
  Installing : libxcb-1.11-2.el6.x86_64                                                                                        9/28 
  Installing : libX11-1.6.3-2.el6.x86_64                                                                                      10/28 
  Installing : libXpm-3.5.10-2.el6.x86_64                                                                                     11/28 
  Installing : pcre-devel-7.8-7.el6.x86_64                                                                                    12/28 
  Installing : libmcrypt-2.5.8-9.el6.x86_64                                                                                   13/28 
  Installing : libjpeg-turbo-1.2.1-3.el6_5.x86_64                                                                             14/28 
  Installing : libicu-4.2.1-14.el6.x86_64                                                                                     15/28 
  Installing : 2:libpng-1.2.49-2.el6_7.x86_64                                                                                 16/28 
  Installing : freetype-2.3.11-17.el6.x86_64                                                                                  17/28 
  Installing : php70w-gd-7.0.9-1.w6.x86_64                                                                                    18/28 
  Installing : php70w-intl-7.0.9-1.w6.x86_64                                                                                  19/28 
  Installing : php70w-mcrypt-7.0.9-1.w6.x86_64                                                                                20/28 
  Installing : php70w-devel-7.0.9-1.w6.x86_64                                                                                 21/28 
  Installing : php70w-xml-7.0.9-1.w6.x86_64                                                                                   22/28 
  Installing : php70w-odbc-7.0.9-1.w6.x86_64                                                                                  23/28 
  Installing : php70w-mysql-7.0.9-1.w6.x86_64                                                                                 24/28 
  Installing : php70w-fpm-7.0.9-1.w6.x86_64                                                                                   25/28 
  Installing : php70w-process-7.0.9-1.w6.x86_64                                                                               26/28 
  Installing : php70w-opcache-7.0.9-1.w6.x86_64                                                                               27/28 
  Installing : php70w-mbstring-7.0.9-1.w6.x86_64                                                                              28/28 
  Verifying  : libtool-ltdl-2.2.6-15.5.el6.x86_64                                                                              1/28 
  Verifying  : libXpm-3.5.10-2.el6.x86_64                                                                                      2/28 
  Verifying  : php70w-mysql-7.0.9-1.w6.x86_64                                                                                  3/28 
  Verifying  : freetype-2.3.11-17.el6.x86_64                                                                                   4/28 
  Verifying  : automake-1.11.1-4.el6.noarch                                                                                    5/28 
  Verifying  : 2:libpng-1.2.49-2.el6_7.x86_64                                                                                  6/28 
  Verifying  : php70w-gd-7.0.9-1.w6.x86_64                                                                                     7/28 
  Verifying  : unixODBC-2.2.14-14.el6.x86_64                                                                                   8/28 
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                                                    9/28 
  Verifying  : php70w-intl-7.0.9-1.w6.x86_64                                                                                  10/28 
  Verifying  : php70w-mbstring-7.0.9-1.w6.x86_64                                                                              11/28 
  Verifying  : php70w-devel-7.0.9-1.w6.x86_64                                                                                 12/28 
  Verifying  : php70w-mcrypt-7.0.9-1.w6.x86_64                                                                                13/28 
  Verifying  : libicu-4.2.1-14.el6.x86_64                                                                                     14/28 
  Verifying  : php70w-xml-7.0.9-1.w6.x86_64                                                                                   15/28 
  Verifying  : php70w-opcache-7.0.9-1.w6.x86_64                                                                               16/28 
  Verifying  : php70w-process-7.0.9-1.w6.x86_64                                                                               17/28 
  Verifying  : php70w-odbc-7.0.9-1.w6.x86_64                                                                                  18/28 
  Verifying  : php70w-pdo-7.0.9-1.w6.x86_64                                                                                   19/28 
  Verifying  : libjpeg-turbo-1.2.1-3.el6_5.x86_64                                                                             20/28 
  Verifying  : libmcrypt-2.5.8-9.el6.x86_64                                                                                   21/28 
  Verifying  : pcre-devel-7.8-7.el6.x86_64                                                                                    22/28 
  Verifying  : libXau-1.0.6-4.el6.x86_64                                                                                      23/28 
  Verifying  : libxcb-1.11-2.el6.x86_64                                                                                       24/28 
  Verifying  : libX11-1.6.3-2.el6.x86_64                                                                                      25/28 
  Verifying  : libX11-common-1.6.3-2.el6.noarch                                                                               26/28 
  Verifying  : libxslt-1.1.26-2.el6_3.1.x86_64                                                                                27/28 
  Verifying  : php70w-fpm-7.0.9-1.w6.x86_64                                                                                   28/28 

Installed:
  php70w-devel.x86_64 0:7.0.9-1.w6          php70w-fpm.x86_64 0:7.0.9-1.w6               php70w-gd.x86_64 0:7.0.9-1.w6              
  php70w-intl.x86_64 0:7.0.9-1.w6           php70w-mbstring.x86_64 0:7.0.9-1.w6          php70w-mcrypt.x86_64 0:7.0.9-1.w6          
  php70w-mysql.x86_64 0:7.0.9-1.w6          php70w-odbc.x86_64 0:7.0.9-1.w6              php70w-opcache.x86_64 0:7.0.9-1.w6         
  php70w-pdo.x86_64 0:7.0.9-1.w6            php70w-process.x86_64 0:7.0.9-1.w6           php70w-xml.x86_64 0:7.0.9-1.w6             

Dependency Installed:
  autoconf.noarch 0:2.63-5.1.el6           automake.noarch 0:1.11.1-4.el6              freetype.x86_64 0:2.3.11-17.el6              
  libX11.x86_64 0:1.6.3-2.el6              libX11-common.noarch 0:1.6.3-2.el6          libXau.x86_64 0:1.0.6-4.el6                  
  libXpm.x86_64 0:3.5.10-2.el6             libicu.x86_64 0:4.2.1-14.el6                libjpeg-turbo.x86_64 0:1.2.1-3.el6_5         
  libmcrypt.x86_64 0:2.5.8-9.el6           libpng.x86_64 2:1.2.49-2.el6_7              libtool-ltdl.x86_64 0:2.2.6-15.5.el6         
  libxcb.x86_64 0:1.11-2.el6               libxslt.x86_64 0:1.1.26-2.el6_3.1           pcre-devel.x86_64 0:7.8-7.el6                
  unixODBC.x86_64 0:2.2.14-14.el6         

Complete!

 

root@shell:~$ chkconfig httpd on

COMPOSER 설치


참고 URL: https://getcomposer.org/download/
root@shell:~$ php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
root@shell:~$ php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '7228c001f88bee97506740ef0888240bd8a760b046ee16db8f4095c0d8d525f2367663f22a46b48d072c816e7fe19959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
root@shell:~$ php composer-setup.php
root@shell:~$ php -r "unlink('composer-setup.php');"
root@shell:~$ mv composer.phar /usr/local/bin/composer

root@shell:~$ composer

  ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.2.0 2016-07-19 01:28:52

Usage:
  command [options] [arguments]

Options:
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  about           Short information about Composer
  archive         Create an archive of this composer package
  browse          Opens the packages repository URL or homepage in your browser.
  clear-cache     Clears composers internal package cache.
  clearcache      Clears composers internal package cache.
  config          Set config options
  create-project  Create new project from a package into given directory.
  depends         Shows which packages cause the given package to be installed
  diagnose        Diagnoses the system to identify common errors.
  dump-autoload   Dumps the autoloader
  dumpautoload    Dumps the autoloader
  exec            Execute a vendored binary/script
  global          Allows running commands in the global composer dir ($COMPOSER_HOME).
  help            Displays help for a command
  home            Opens the packages repository URL or homepage in your browser.
  info            Show information about packages
  init            Creates a basic composer.json file in current directory.
  install         Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
  licenses        Show information about licenses of dependencies
  list            Lists commands
  outdated        Shows a list of installed packages that have updates available, including their latest version.
  prohibits       Shows which packages prevent the given package from being installed
  remove          Removes a package from the require or require-dev
  require         Adds required packages to your composer.json and installs them
  run-script      Run the scripts defined in composer.json.
  search          Search for packages
  self-update     Updates composer.phar to the latest version.
  selfupdate      Updates composer.phar to the latest version.
  show            Show information about packages
  status          Show a list of locally modified packages
  suggests        Show package suggestions
  update          Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
  validate        Validates a composer.json and composer.lock
  why             Shows which packages cause the given package to be installed
  why-not         Shows which packages prevent the given package from being installed

MariaDB설치 


설치 관련 문서
https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=CentOS&distro_release=centos6-amd64--centos6&version=10.1
https://mariadb.com/kb/en/mariadb/yum/

위 싸이트를 방문하면 서버의 환경에 맞게 원하는 설치문서를 보실수 있습니다. 전 CentOS 6.7에 MariaDB 10.1를 설치하기위하여 아래와 같이 선턱했습니다.

현 시점에서는 아래와 같은 웹싸이트가 뜹니다.

 

 

root@shell:~$ vi /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.1 CentOS repository list - created 2016-03-22 07:54 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

root@shell:~$ yum install MariaDB-server MariaDB-client

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.daumkakao.com
 * epel: mirror.premi.st
 * extras: ftp.daumkakao.com
 * updates: ftp.daumkakao.com
 * webtatic: sp.repo.webtatic.com
mariadb                                                                                                      | 2.9 kB     00:00     
mariadb/primary_db                                                                                           |  19 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.1.16-1.el6 will be installed
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: MariaDB-client-10.1.16-1.el6.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-client-10.1.16-1.el6.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: MariaDB-client-10.1.16-1.el6.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: MariaDB-client-10.1.16-1.el6.x86_64
---> Package MariaDB-server.x86_64 0:10.1.16-1.el6 will be installed
--> Processing Dependency: lsof for package: MariaDB-server-10.1.16-1.el6.x86_64
--> Processing Dependency: galera for package: MariaDB-server-10.1.16-1.el6.x86_64
--> Processing Dependency: perl(DBI) for package: MariaDB-server-10.1.16-1.el6.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: MariaDB-server-10.1.16-1.el6.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.1.16-1.el6 will be installed
--> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.1.16-1.el6.x86_64
---> Package galera.x86_64 0:25.3.15-1.rhel6.el6 will be installed
---> Package jemalloc.x86_64 0:3.6.0-1.el6 will be installed
---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
---> Package lsof.x86_64 0:4.82-5.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.1.16-1.el6 will be obsoleting
---> Package mysql-libs.x86_64 0:5.1.73-7.el6 will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                          Arch                     Version                                  Repository                 Size
====================================================================================================================================
Installing:
 MariaDB-client                   x86_64                   10.1.16-1.el6                            mariadb                    40 M
 MariaDB-compat                   x86_64                   10.1.16-1.el6                            mariadb                   2.7 M
     replacing  mysql-libs.x86_64 5.1.73-7.el6
 MariaDB-server                   x86_64                   10.1.16-1.el6                            mariadb                   104 M
Installing for dependencies:
 MariaDB-common                   x86_64                   10.1.16-1.el6                            mariadb                    42 k
 galera                           x86_64                   25.3.15-1.rhel6.el6                      mariadb                   8.5 M
 jemalloc                         x86_64                   3.6.0-1.el6                              epel                      100 k
 libaio                           x86_64                   0.3.107-10.el6                           base                       21 k
 lsof                             x86_64                   4.82-5.el6                               base                      324 k
 perl-DBI                         x86_64                   1.609-4.el6                              base                      705 k

Transaction Summary
====================================================================================================================================
Install       9 Package(s)

Total download size: 157 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): MariaDB-10.1.16-centos6-x86_64-client.rpm                                                             |  40 MB     00:11     
(2/9): MariaDB-10.1.16-centos6-x86_64-common.rpm                                                             |  42 kB     00:00     
(3/9): MariaDB-10.1.16-centos6-x86_64-compat.rpm                                                             | 2.7 MB     00:03     
(4/9): MariaDB-10.1.16-centos6-x86_64-server.rpm                                                             | 104 MB     00:26     
(5/9): galera-25.3.15-1.rhel6.el6.x86_64.rpm                                                                 | 8.5 MB     00:01     
(6/9): jemalloc-3.6.0-1.el6.x86_64.rpm                                                                       | 100 kB     00:00     
(7/9): libaio-0.3.107-10.el6.x86_64.rpm                                                                      |  21 kB     00:00     
(8/9): lsof-4.82-5.el6.x86_64.rpm                                                                            | 324 kB     00:00     
(9/9): perl-DBI-1.609-4.el6.x86_64.rpm                                                                       | 705 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               3.4 MB/s | 157 MB     00:45     
경고: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
Retrieving key from https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Importing GPG key 0x1BB943DB:
 Userid: "MariaDB Package Signing Key "
 From  : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libaio-0.3.107-10.el6.x86_64                                                                                    1/10 
  Installing : MariaDB-common-10.1.16-1.el6.x86_64                                                                             2/10 
  Installing : MariaDB-compat-10.1.16-1.el6.x86_64                                                                             3/10 
  Installing : MariaDB-client-10.1.16-1.el6.x86_64                                                                             4/10 
  Installing : jemalloc-3.6.0-1.el6.x86_64                                                                                     5/10 
  Installing : perl-DBI-1.609-4.el6.x86_64                                                                                     6/10 
  Installing : galera-25.3.15-1.rhel6.el6.x86_64                                                                               7/10 
  Installing : lsof-4.82-5.el6.x86_64                                                                                          8/10 
  Installing : MariaDB-server-10.1.16-1.el6.x86_64                                                                             9/10 
chown: cannot access `/var/lib/mysql': 그런 파일이나 디렉터리가 없습니다
2016-08-08 10:00:48 139936870860832 [Note] /usr/sbin/mysqld (mysqld 10.1.16-MariaDB) starting as process 1825 ...
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: The InnoDB memory heap is disabled
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Memory barrier is not used
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Using Linux native AIO
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Using SSE crc32 instructions
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Completed initialization of buffer pool
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Database physically writes the file full: wait...
2016-08-08 10:00:48 139936870860832 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-08-08 10:00:49 139936870860832 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-08-08 10:00:51 139936870860832 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-08-08 10:00:51 139936870860832 [Warning] InnoDB: New log files created, LSN=45883
2016-08-08 10:00:51 139936870860832 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: Doublewrite buffer created
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: 128 rollback segment(s) are active.
2016-08-08 10:00:52 139936870860832 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: Foreign key constraint system tables created
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: Tablespace and datafile system tables created.
2016-08-08 10:00:52 139936870860832 [Note] InnoDB: Waiting for purge to start
2016-08-08 10:00:52 139936870860832 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.30-76.3 started; log sequence number 0
2016-08-08 10:00:52 139936103659264 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-08-08 10:00:55 140079406684192 [Note] /usr/sbin/mysqld (mysqld 10.1.16-MariaDB) starting as process 1854 ...
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: The InnoDB memory heap is disabled
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Memory barrier is not used
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Using Linux native AIO
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Using SSE crc32 instructions
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Completed initialization of buffer pool
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Highest supported file format is Barracuda.
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: 128 rollback segment(s) are active.
2016-08-08 10:00:55 140079406684192 [Note] InnoDB: Waiting for purge to start
2016-08-08 10:00:55 140079406684192 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.30-76.3 started; log sequence number 1616799
2016-08-08 10:00:55 140078653339392 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-08-08 10:00:58 140585609570336 [Note] /usr/sbin/mysqld (mysqld 10.1.16-MariaDB) starting as process 1884 ...
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: The InnoDB memory heap is disabled
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Memory barrier is not used
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Using Linux native AIO
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Using SSE crc32 instructions
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Completed initialization of buffer pool
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Highest supported file format is Barracuda.
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: 128 rollback segment(s) are active.
2016-08-08 10:00:58 140585609570336 [Note] InnoDB: Waiting for purge to start
2016-08-08 10:00:58 140585609570336 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.30-76.3 started; log sequence number 1616809
2016-08-08 10:00:58 140584855500544 [Note] InnoDB: Dumping buffer pool(s) not yet started

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h amicogenCRM password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from MariaDB
Corporation Ab. You can contact us about this at sales@mariadb.com.
Alternatively consider joining our community based development effort:
http://mariadb.com/kb/en/contributing-to-the-mariadb-project/

  Erasing    : mysql-libs-5.1.73-7.el6.x86_64                                                                                 10/10 
  Verifying  : MariaDB-client-10.1.16-1.el6.x86_64                                                                             1/10 
  Verifying  : lsof-4.82-5.el6.x86_64                                                                                          2/10 
  Verifying  : MariaDB-compat-10.1.16-1.el6.x86_64                                                                             3/10 
  Verifying  : galera-25.3.15-1.rhel6.el6.x86_64                                                                               4/10 
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                                     5/10 
  Verifying  : jemalloc-3.6.0-1.el6.x86_64                                                                                     6/10 
  Verifying  : MariaDB-common-10.1.16-1.el6.x86_64                                                                             7/10 
  Verifying  : MariaDB-server-10.1.16-1.el6.x86_64                                                                             8/10 
  Verifying  : libaio-0.3.107-10.el6.x86_64                                                                                    9/10 
  Verifying  : mysql-libs-5.1.73-7.el6.x86_64                                                                                 10/10 

Installed:
  MariaDB-client.x86_64 0:10.1.16-1.el6      MariaDB-compat.x86_64 0:10.1.16-1.el6      MariaDB-server.x86_64 0:10.1.16-1.el6     

Dependency Installed:
  MariaDB-common.x86_64 0:10.1.16-1.el6          galera.x86_64 0:25.3.15-1.rhel6.el6          jemalloc.x86_64 0:3.6.0-1.el6         
  libaio.x86_64 0:0.3.107-10.el6                 lsof.x86_64 0:4.82-5.el6                     perl-DBI.x86_64 0:1.609-4.el6         

Replaced:
  mysql-libs.x86_64 0:5.1.73-7.el6                                                                                                  

Complete!


root@shell:~$ chkconfig mysql on

 

이제 Mysql 데몬을 실행합니다.

root@shell:~$ /etc/init.d/mysql start

Starting MySQL. SUCCESS! 

 

위와 같이 데몬이 정상적으로 실행하였다면 이제 Mysql 서버에 접속해봅니다.

root@shell:~$ mysql -u root -p mysql

Enter password:   <- 비밀번호를 아무것도 지정안하였기때문에 그냥 엔터를 눌러주세요.
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.16-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [mysql]> 

위의 화면을 보았다면 MariaDB  설치가 완료되었습니다.

인터넷 브라우저를 여신 후 http://아이피 주소 를 넣어보세요.