눈에 띄는 부분이 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년 전
나누미싸이트 가입시에 가입메일이 안오네요 흠 늦게 오는건가요??
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 411 | ||
| 7829 |
|
9년 전 | 593 | |
| 7828 | 9년 전 | 527 | ||
| 7827 | 9년 전 | 414 | ||
| 7826 | 9년 전 | 424 | ||
| 7825 | 10년 전 | 462 | ||
| 7824 | 10년 전 | 437 | ||
| 7823 | 10년 전 | 360 | ||
| 7822 | 10년 전 | 344 | ||
| 7821 | 10년 전 | 298 | ||
| 7820 | 10년 전 | 341 | ||
| 7819 |
|
10년 전 | 743 | |
| 7818 | 10년 전 | 377 | ||
| 7817 | 10년 전 | 497 | ||
| 7816 | 10년 전 | 394 | ||
| 7815 | 10년 전 | 597 | ||
| 7814 | 10년 전 | 417 | ||
| 7813 | 10년 전 | 364 | ||
| 7812 | 10년 전 | 384 | ||
| 7811 | 10년 전 | 386 | ||
| 7810 | 10년 전 | 553 | ||
| 7809 | 10년 전 | 478 | ||
| 7808 | 10년 전 | 370 | ||
| 7807 | 10년 전 | 394 | ||
| 7806 |
프로그래머7
|
10년 전 | 1327 | |
| 7805 | 10년 전 | 1268 | ||
| 7804 |
zahir1312
|
10년 전 | 766 | |
| 7803 |
|
10년 전 | 1363 | |
| 7802 | 10년 전 | 451 | ||
| 7801 | 10년 전 | 854 | ||
| 7800 | 10년 전 | 1077 | ||
| 7799 | 10년 전 | 542 | ||
| 7798 | 10년 전 | 494 | ||
| 7797 | 10년 전 | 493 | ||
| 7796 | 10년 전 | 338 | ||
| 7795 | 10년 전 | 493 | ||
| 7794 | 10년 전 | 535 | ||
| 7793 | 10년 전 | 1042 | ||
| 7792 | 10년 전 | 456 | ||
| 7791 | 10년 전 | 537 | ||
| 7790 | 10년 전 | 495 | ||
| 7789 |
fbastore
|
10년 전 | 1439 | |
| 7788 | 10년 전 | 530 | ||
| 7787 | 10년 전 | 390 | ||
| 7786 | 10년 전 | 565 | ||
| 7785 | 10년 전 | 570 | ||
| 7784 | 10년 전 | 630 | ||
| 7783 | 10년 전 | 430 | ||
| 7782 | 10년 전 | 481 | ||
| 7781 | 10년 전 | 893 | ||
| 7780 | 10년 전 | 805 | ||
| 7779 | 10년 전 | 768 | ||
| 7778 | 10년 전 | 357 | ||
| 7777 | 10년 전 | 441 | ||
| 7776 | 10년 전 | 448 | ||
| 7775 | 10년 전 | 394 | ||
| 7774 | 10년 전 | 626 | ||
| 7773 | 10년 전 | 374 | ||
| 7772 | 10년 전 | 722 | ||
| 7771 | 10년 전 | 369 | ||
| 7770 | 10년 전 | 638 | ||
| 7769 | 10년 전 | 366 | ||
| 7768 | 10년 전 | 592 | ||
| 7767 | 10년 전 | 1160 | ||
| 7766 | 10년 전 | 485 | ||
| 7765 | 10년 전 | 510 | ||
| 7764 |
잘살아보자
|
10년 전 | 370 | |
| 7763 |
|
10년 전 | 1440 | |
| 7762 |
Tosea
|
10년 전 | 1047 | |
| 7761 | 10년 전 | 637 | ||
| 7760 |
잘살아보자
|
10년 전 | 667 | |
| 7759 |
잘살아보자
|
10년 전 | 492 | |
| 7758 |
잘살아보자
|
10년 전 | 581 | |
| 7757 | 10년 전 | 1230 | ||
| 7756 |
ITBANK
|
10년 전 | 1247 | |
| 7755 | 10년 전 | 1921 | ||
| 7754 | 10년 전 | 1045 | ||
| 7753 | 10년 전 | 874 | ||
| 7752 | 10년 전 | 1381 | ||
| 7751 |
잘살아보자
|
10년 전 | 515 | |
| 7750 |
잘살아보자
|
10년 전 | 470 | |
| 7749 |
잘살아보자
|
10년 전 | 472 | |
| 7748 |
잘살아보자
|
10년 전 | 470 | |
| 7747 |
잘살아보자
|
10년 전 | 564 | |
| 7746 |
잘살아보자
|
10년 전 | 672 | |
| 7745 |
잘살아보자
|
10년 전 | 903 | |
| 7744 |
잘살아보자
|
10년 전 | 407 | |
| 7743 | 10년 전 | 938 | ||
| 7742 |
starbros
|
10년 전 | 827 | |
| 7741 |
잘살아보자
|
10년 전 | 662 | |
| 7740 |
잘살아보자
|
10년 전 | 515 | |
| 7739 |
잘살아보자
|
10년 전 | 456 | |
| 7738 |
잘살아보자
|
10년 전 | 521 | |
| 7737 |
잘살아보자
|
10년 전 | 486 | |
| 7736 |
잘살아보자
|
10년 전 | 509 | |
| 7735 |
잘살아보자
|
10년 전 | 836 | |
| 7734 |
잘살아보자
|
10년 전 | 422 | |
| 7733 |
잘살아보자
|
10년 전 | 534 | |
| 7732 |
잘살아보자
|
10년 전 | 689 | |
| 7731 |
잘살아보자
|
10년 전 | 611 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기