본문 바로가기

WEB서버

configure 옵션

./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