변군이글루

[APM] APM 설치 본문

및___APM

[APM] APM 설치

변군 변군이글루 2015.02.08 01:09

 

APM 설치

 

패키지 업데이트

# yum -y install glibc bash

 

의존 라이브러리 설치

# yum -y install wget cmake ncurses-devel libtool-ltdl expat-devel db4-devel pcre-devel openssl-devel

 

[MySQL 설치]

# useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 mysql

 

# tar xvfz mysql-5.6.23.tar.gz

 

# cd  mysql-5.6.23

 

# cmake \

-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \

-DMYSQL_DATADIR=/usr/local/mysql/data \

-DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \

-DSYSCONFDIR=/etc \

-DMYSQL_TCP_PORT=3306 \

-DMYSQL_USER=mysql \

-DDEFAULT_CHARSET=utf8 \

-DDEFAULT_COLLATION=utf8_general_ci \

-DWITH_EXTRA_CHARSETS=all \

-DENABLED_LOCAL_INFILE=1 \

-DWITH_INNOBASE_STORAGE_ENGINE=1 \

-DWITH_ARCHIVE_STORAGE_ENGINE=1 \

-DWITH_BLACKHOLE_STORAGE_ENGINE=1

 

# gmake; gmake install

 

# cd /usr/local/mysql/

# ./scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysql/data

 

# pwd

/usr/local/mysql

# mv my.cnf /etc/my.cnf

 

#vi /etc/my.cnf

 

innodb_buffer_pool_size = 16M

innodb_additional_mem_pool_size = 2M

innodb_log_file_size = 5M

innodb_log_buffer_size = 8M

innodb_flush_log_at_trx_commit = 1

innodb_lock_wait_timeout = 50

 

# ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql

# ln -s /usr/local/mysql/bin/mysqldump /usr/sbin/mysqldump

# ln -s /usr/local/mysql/bin/mysql_config /usr/sbin/mysql_config

# ln -s /usr/local/mysql/bin/mysqladmin /usr/sbin/mysqladmin

 

# ln -s /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqld

# chkconfig --add mysqld

# chkconfig --level 24 mysqld off

# service mysqld restart

 

# mysqladmin -u root password "mysqladminpw1!"

 

공유 라이브러리 추가

# echo "/usr/local/mysql/lib" >> /etc/ld.so.conf

# ldconfig

 

의존 라이브러리 설치

# yum -y install make gcc gcc-c++ autoconf automake libtool pkgconfig findutils

# yum -y install zlib-devel openldap-devel pcre-devel openssl-devel libxml2-devel

 

[Apache 설치]

# useradd -c "Apache" -u 48 -s /sbin/nologin apache

 

# wget http://archive.apache.org/dist/httpd/httpd-2.4.9.tar.gz

# tar xvfz httpd-2.4.9.tar.gz

 

[APR 설치]

# wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz

# tar xvfz apr-1.5.1.tar.gz

# mv apr-1.5.1 httpd-2.4.9/srclib/apr

 

[APR-util 설치]

# wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz

# tar xvfz apr-util-1.5.4.tar.gz

# mv apr-util-1.5.4 httpd-2.4.9/srclib/apr-util

 

 

# cd httpd-2.4.9

# ./configure \

--prefix=/usr/local/apache2 \

--with-pcre \

--with-libxml2 \

--with-ssl \

--with-z \

--with-mpm=worker \

--with-included-apr \

--enable-so \

--enable-rewrite \

--enable-ssl \

--enable-proxy \

--enable-file-cache \

--enable-cache \

--enable-file-cache \

--enable-modules=all \

--enable-mods-shared=all

 

# make; make install

 

# ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

# vi /usr/local/apache2/bin/apachectl

 

# chkconfig: 35 20 80 <--추가

# description: Apache Web Service <--추가

 

공유 라이브러리 추가

# echo "/usr/local/apache2/modules" >>/etc/ld.so.conf

# ldconfig

 

 

의존 라이브러리 설치

# yum -y install libxml2-devel bzip2-devel libcurl-devel gdbm-devel libvpx yum install libvpx-devel libjpeg-turbo-devel libpng-devel libXpm libXpm-devel freetype-devel t1lib t1lib-devel  gmp-devel libc-client libc-client-devel pam-devel libicu libicu-devel openldap-devel readline-devel libedit-devel libtidy libtidy-devel libxslt libxslt-devel

# yum -y libexif-devel libmcrypt-devel php-mbstring gd-devel php-mysql

 

[PHP 설치]

# wget http://kr1.php.net/distributions/php-5.6.4.tar.gz

# cd php-5.6.4

# ./configure \

--prefix=/usr/local/php \

--with-apxs2=/usr/local/apache2/bin/apxs \

--with-config-file-path=/usr/local/php/lib \

--with-mysql=/usr/local/mysql \

--with-gd \

--with-jpeg-dir=/usr \

--with-png-dir=/usr \

--with-zlib \

--with-freetype-dir=/usr \

--with-libxml-dir=/usr \

--with-libdir=lib64 \

--with-openssl \

--with-mcrypt \

--with-gettext \

--with-curl \

--with-regex=php \

--with-gdbm=/usr \

--with-pcre-regex \

--with-mcrypt \

--disable-debug \

--enable-sigchild \

--enable-gd-native-ttf \

--enable-sockets \

--with-pdo-mysql \

--enable-bcmath \

--enable-mbstring \

--enable-calendar \

--enable-zip \

--enable-dom 

 

# make; make install

 

# cp php.ini-production /usr/local/php/lib/php.ini

 

# vi /usr/local/apache2/conf/httpd.conf

 

    DirectoryIndex index.html index.php <--추가

 

    AddType application/x-httpd-php .php .html <--추가

    AddType application/x-httpd-php-source .phps <--추가

 

PHP TEST 페이지

# echo "<?php phpinfo() ?>" > /usr/local/apache2/htdocs/phpinfo.php

 

 

 

'및___APM' 카테고리의 다른 글

[APM] APM 설치_20150209  (0) 2015.02.09
[APM] php 설치 중 에러(libmysqlclient)  (0) 2015.02.08
[APM] APM 설치  (1) 2015.02.08
[apache] mod_slotmem_shm 모듈 에러  (0) 2015.02.05
[apache] 아파치 prefork- worker 변경  (0) 2015.01.21
[mysql] MySQL Replication 설정  (0) 2014.04.12
1 Comments
  • 프로필사진 변군 변군이글루 2015.02.09 00:58 신고 php

    ./configure \
    --prefix=/usr/local/php \
    --with-apxs2=/usr/local/apache2/bin/apxs \
    --with-mysql=/usr/local/mysql \
    --with-mysql-sock=/usr/local/mysql/mysql.sock \
    --with-gd \
    --with-jpeg-dir=/usr \
    --with-png-dir=/usr \
    --with-freetype-dir=/usr \
    --with-libexpat-dir=/usr \
    --with-libxml-dir=/usr \
    --with-libdir=lib64 \
    --with-zlib-dir=/usr \
    --with-gdbm=/usr \
    --with-pcre-regex \
    --with-openssl=/usr \
    --with-mcrypt \
    --with-gettext \
    --with-curl \
    --with-regex=php \
    --with-pdo-mysql \
    --enable-ftp \
    --enable-mbstring \
    --with-mcrypt \
    --disable-debug \
    --with-libexpat-dir=/usr \
    --enable-sockets \
    --enable-wddx \
    --with-freetype-dir=/usr \
    --enable-bcmath \
    --enable-mbregex \
    --enable-exif \
    --enable-gd-native-ttf \
    --enable-calendar \
    --enable-sysvmsg \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-zip \
    --enable-dom
댓글쓰기 폼