눈에 띄는 부분이 MPM 이 기존엔 prefork,worker 방식을 지원 했다면 이번 2.4.1 버전에서는 정식으로beos, leader, mpmt_os2, perchild, prefork, threadpool, worker 등의 이벤트 동작방식을 지원 하네요.
그리고 apr, apr-util을 한번만 컴파일 해놓으면 아파치 버전업 할때 다시 컴파일을 하지 않아도 되는군요.물론 아파치 재컴파일시 apr, apr-util의 prefix 위치를 지정 해 주어야 합니다...^^;;
아직 성능적으로는 테스트 중이라 뭐라 말씀 드릴수없으나 아파치구동시 httpd-vhosts.conf, httpd-default.conf, 등이 httpd.conf 파일내에 위치한 LoadModule 과 연동이 되어야 정상적으로 start 가 됩니다. 그리고 httpd-vhosts.conf 에서는 NameVirtualHost *:80 가 없어 졌네요....^^
우선 필요한 라이브러리를 먼저 설치 해주신후에 아래 설치 방법을 진행 해 주세요....^^
필요한 소스와 라이브러리 설치는 이전에 리포팅한 게시물을 참조 하시면 되겠습니다.
@ 아파치 설치전 apr 설치
# cd /usr/local/src
# wget http://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
# wget http://archive.apache.org/dist/apr/apr-util-1.4.1.tar.gz
# tar zxvf apr-1.4.6.tar.gz
# cd /usr/local/src/apr-1.4.6
# ./configure --prefix=/usr/local/apr
# make;make install
# cd /usr/local/src
# tar zxvf apr-util-1.4.1.tar.gz
# cd /usr/local/src/apr-util-1.4.1
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make;make install
@ 아파치 설치 2.4.1
# cd /usr/local/src
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
# tar zxvf pcre-8.30.tar.gz
# cd pcre-8.30
# make clean;./configure --prefix=/usr/local;make -j4;make instal
# cd /usr/local/src
# wget http://apache.ziply.com//httpd/httpd-2.4.1.tar.gz
# wget http://linux-files.com/httpd/httpd-2.4.1.tar.gz
# tar zxvf httpd-2.4.1.tar.gz
# cd httpd-2.4.1
# make clean
# vi server/mpm/prefork/prefork.c
@ #define DEFAULT_SERVER_LIMIT 256 ##ulimit -a max user processes 값을 넘지 않도록 256의 배수만큼 주정해준다. Ex) 32768
# ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-so --enable-rewrite --enable-vhost-alias --enable-ssl --enable-proxy --enable-shared=max --enable-modules=shared --enable-mods-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
# make; make install
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
@ chkconfig를 이용해서 자동실행 등록해야 하지만 이전에 실행 스크립트 파일에 아래 내용 추가가 선행되어야 한다.
# vi /etc/init.d/httpd
-httpd 파일
#chkconfig: 2345 90 90
#description: init file for Apache server daemon
#processname: /usr/local/apache/bin/apachectl
#config: /usr/local/apache/conf/httpd.conf
#pidfile: /usr/local/apache/logs/httpd.pid
이를 추가한다.
# chkconfig --add httpd
# chkconfig --list | grep httpd
@ 아파치 설정
# vi /usr/local/apache/conf/httpd.conf
LoadModule vhost_alias_module modules/mod_vhost_alias.so <-- 주석제거
LoadModule userdir_module modules/mod_userdir.so <-- 주석제거
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so <-- 주석제거
@ 접속이 안될경우 80포트 열어 주어야 한다.
#vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT =>추가
# /etc/init.d/iptables restart 또는 service iptables restart
@ 아파치 설치전 apr 설치
# cd /usr/local/src
# wget http://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
# wget http://archive.apache.org/dist/apr/apr-util-1.4.1.tar.gz
# tar zxvf apr-1.4.6.tar.gz
# cd /usr/local/src/apr-1.4.6
# ./configure --prefix=/usr/local/apr
# make;make install
# cd /usr/local/src
# tar zxvf apr-util-1.4.1.tar.gz
# cd /usr/local/src/apr-util-1.4.1
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make;make install
@ 아파치 설치 2.4.1
# cd /usr/local/src
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
# tar zxvf pcre-8.30.tar.gz
# cd pcre-8.30
# make clean;./configure --prefix=/usr/local;make -j4;make instal
# cd /usr/local/src
# wget http://apache.ziply.com//httpd/httpd-2.4.1.tar.gz
# wget http://linux-files.com/httpd/httpd-2.4.1.tar.gz
# tar zxvf httpd-2.4.1.tar.gz
# cd httpd-2.4.1
# make clean
# vi server/mpm/prefork/prefork.c
@ #define DEFAULT_SERVER_LIMIT 256 ##ulimit -a max user processes 값을 넘지 않도록 256의 배수만큼 주정해준다. Ex) 32768
# ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-so --enable-rewrite --enable-vhost-alias --enable-ssl --enable-proxy --enable-shared=max --enable-modules=shared --enable-mods-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
# make; make install
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
@ chkconfig를 이용해서 자동실행 등록해야 하지만 이전에 실행 스크립트 파일에 아래 내용 추가가 선행되어야 한다.
# vi /etc/init.d/httpd
-httpd 파일
#chkconfig: 2345 90 90
#description: init file for Apache server daemon
#processname: /usr/local/apache/bin/apachectl
#config: /usr/local/apache/conf/httpd.conf
#pidfile: /usr/local/apache/logs/httpd.pid
이를 추가한다.
# chkconfig --add httpd
# chkconfig --list | grep httpd
@ 아파치 설정
# vi /usr/local/apache/conf/httpd.conf
LoadModule vhost_alias_module modules/mod_vhost_alias.so <-- 주석제거
LoadModule userdir_module modules/mod_userdir.so <-- 주석제거
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so <-- 주석제거
@ 접속이 안될경우 80포트 열어 주어야 한다.
#vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT =>추가
# /etc/init.d/iptables restart 또는 service iptables restart
댓글 2개
13년 전
마침 서버세팅을 해야되는데 감사합니다.!
binia
12년 전
나누미싸이트 가입시에 가입메일이 안오네요 흠 늦게 오는건가요??
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 467 | ||
| 8129 |
|
9년 전 | 626 | |
| 8128 | 9년 전 | 502 | ||
| 8127 |
|
9년 전 | 563 | |
| 8126 | 9년 전 | 492 | ||
| 8125 | 9년 전 | 749 | ||
| 8124 |
|
9년 전 | 480 | |
| 8123 | 9년 전 | 471 | ||
| 8122 | 9년 전 | 409 | ||
| 8121 | 9년 전 | 515 | ||
| 8120 | 9년 전 | 445 | ||
| 8119 | 9년 전 | 524 | ||
| 8118 |
|
9년 전 | 613 | |
| 8117 |
|
9년 전 | 384 | |
| 8116 |
PASKRAN
|
9년 전 | 451 | |
| 8115 | 9년 전 | 445 | ||
| 8114 |
kiplayer
|
9년 전 | 585 | |
| 8113 | 9년 전 | 420 | ||
| 8112 |
|
9년 전 | 535 | |
| 8111 | 9년 전 | 390 | ||
| 8110 | 9년 전 | 427 | ||
| 8109 | 9년 전 | 337 | ||
| 8108 |
|
9년 전 | 526 | |
| 8107 |
|
9년 전 | 415 | |
| 8106 |
|
9년 전 | 411 | |
| 8105 | 9년 전 | 456 | ||
| 8104 |
|
9년 전 | 410 | |
| 8103 |
|
9년 전 | 410 | |
| 8102 |
|
9년 전 | 368 | |
| 8101 |
snshero
|
9년 전 | 756 | |
| 8100 | 9년 전 | 819 | ||
| 8099 | 9년 전 | 784 | ||
| 8098 | 9년 전 | 694 | ||
| 8097 | 9년 전 | 485 | ||
| 8096 | 9년 전 | 685 | ||
| 8095 | 9년 전 | 809 | ||
| 8094 | 9년 전 | 485 | ||
| 8093 | 9년 전 | 779 | ||
| 8092 | 9년 전 | 739 | ||
| 8091 | 9년 전 | 1129 | ||
| 8090 | 9년 전 | 740 | ||
| 8089 | 9년 전 | 943 | ||
| 8088 | 9년 전 | 617 | ||
| 8087 | 9년 전 | 727 | ||
| 8086 | 9년 전 | 494 | ||
| 8085 | 9년 전 | 461 | ||
| 8084 | 9년 전 | 601 | ||
| 8083 | 9년 전 | 570 | ||
| 8082 | 9년 전 | 740 | ||
| 8081 | 9년 전 | 451 | ||
| 8080 | 9년 전 | 537 | ||
| 8079 | 9년 전 | 493 | ||
| 8078 | 9년 전 | 423 | ||
| 8077 | 9년 전 | 500 | ||
| 8076 | 9년 전 | 384 | ||
| 8075 | 9년 전 | 402 | ||
| 8074 | 9년 전 | 372 | ||
| 8073 | 9년 전 | 420 | ||
| 8072 | 9년 전 | 408 | ||
| 8071 |
o1o111
|
9년 전 | 859 | |
| 8070 | 9년 전 | 378 | ||
| 8069 | 9년 전 | 306 | ||
| 8068 | 9년 전 | 570 | ||
| 8067 | 9년 전 | 377 | ||
| 8066 | 9년 전 | 405 | ||
| 8065 | 9년 전 | 353 | ||
| 8064 | 9년 전 | 337 | ||
| 8063 | 9년 전 | 300 | ||
| 8062 | 9년 전 | 287 | ||
| 8061 | 9년 전 | 334 | ||
| 8060 | 9년 전 | 354 | ||
| 8059 | 9년 전 | 293 | ||
| 8058 | 9년 전 | 228 | ||
| 8057 | 9년 전 | 358 | ||
| 8056 | 9년 전 | 286 | ||
| 8055 | 9년 전 | 318 | ||
| 8054 | 9년 전 | 333 | ||
| 8053 | 9년 전 | 378 | ||
| 8052 | 9년 전 | 261 | ||
| 8051 | 9년 전 | 305 | ||
| 8050 | 9년 전 | 371 | ||
| 8049 | 9년 전 | 297 | ||
| 8048 | 9년 전 | 406 | ||
| 8047 | 9년 전 | 337 | ||
| 8046 | 9년 전 | 265 | ||
| 8045 | 9년 전 | 239 | ||
| 8044 | 9년 전 | 304 | ||
| 8043 | 9년 전 | 249 | ||
| 8042 | 9년 전 | 269 | ||
| 8041 | 9년 전 | 311 | ||
| 8040 | 9년 전 | 240 | ||
| 8039 | 9년 전 | 299 | ||
| 8038 | 9년 전 | 251 | ||
| 8037 | 9년 전 | 368 | ||
| 8036 | 9년 전 | 454 | ||
| 8035 | 9년 전 | 406 | ||
| 8034 | 9년 전 | 368 | ||
| 8033 | 9년 전 | 325 | ||
| 8032 | 9년 전 | 382 | ||
| 8031 | 9년 전 | 314 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기