./configure --prefix=/usr/local/mysql \
--enable-thread-safe-client \
--enable-large-files \
--localstatedir=/data1/data/mysql \
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
--with-charset=euckr \
--with-extra-charsets=all \
--with-innodb \
--disable-shared -with-mysqld-user=mysql \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-pthread \
--with-mit-threads \
--without-debug -without-docs
--with-readline \ <-- 삭제
make
make install
groupadd dba
useradd -M -o -r -d /usr/local/mysql -s /sbin/nologin -c "Mysql Server" -u 27
-g dba mysql > dev/null 2>&1 ||:
chown -R root:dba /usr/local/mysql
mkdir /var/lib/mysql/
/usr/local/mysql/bin/mysql_install_db
chown -R mysql:dba /data1/data/mysql
chown -R mysql:dba /var/lib/mysql/
/usr/local/mysql/bin/mysqld_safe &
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf && ldconfig
cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 35 mysqld on
cp my-large.cnf /etc/my.cnf
shutdown : ./mysqladmin -u root -p shutdown
---------------------------------------------------------------------------------------------
./configure --enable-bcmath \
--enable-ftp \
--enable-filepro \
--enable-libxml \
--enable-memory-limit \
--enable-sockets \
--enable-spl \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-versioning \
--enable-wddx \
--disable-cli \
--disable-debug \
--disable-dmalloc \
--disable-posix \
--disable-rpath \
--with-apxs2=/data1/apache2/bin/apxs \
--with-bz2 \
--with-freetype-dir\
--with-gd \
--with-gettext \
--with-jpeg-dir \
--with-kerberos \
--with-libxml-dir \
--with-mod-charset \
--with-oci8=/oracle/product/10.1.0/db_1 \
--with-oracle=/oracle/product/10.1.0/db_1 \
--with-mysql=/usr/local/mysql \
--with-openssl \
--with-png-dir \
--with-ttf \
--with-zlib \
--enable-mbstring
// 제거
--with-ming=/usr/local
--with-imap \
--with-imap-ssl \
make
make install
./configure --prefix=/data1/apache2 \
--activate-module=src/modules/libphp5.a \
--enable-rule=SHARED_CORE \
--enable-module=so \
--enable-shared=max
아파치 컴파일
./configure \
--prefix=/data1/apache2 \
--enable-rule=SHARED_CORE \
--enable-module=so \
--enable-so \
--enable-mods-shared=all \
--with-mpm=threadpool \
--enable-file-cache \
--sysconfdir=/data1/apache2/conf \
--datadir=/data1/apache2
'WEB서버' 카테고리의 다른 글
Apache DSO에 대하여... (0) | 2011.10.16 |
---|---|
apache 2.0.52 ssl 설정법 (0) | 2011.10.16 |
CENTOS + apache2 + mysql5 + php5 + jdk + resin2 (0) | 2011.10.16 |
Apache와 Fast CGI설치 - cgi 개념 이탈?^^ (0) | 2011.10.16 |
아파치 웹서버에 사용자 모듈 추가 하는 예제 (0) | 2011.10.16 |