글

라벨이 apache인 게시물 표시

vertual-hosting : Apache Error Document 세팅

<VirtualHost _default_:80>                                                    ServerName www..xxx.com ServerAlias  www..xxx.com        DocumentRoot "C:/Project/src/xxxx/WebRoot" ErrorDocument 503 /check.html.var        <Directory "C:/Project/src/xxxx/WebRoot">                Options FollowSymLinks                AllowOverride all                Allow from all                Order allow,deny        </Directory> JkMount /CrosseditorServlet worker1 JkMount /*.vm worker1        JkMount /*.html worker1        JkMount /*.jsp worker1   ...

좀비프로세스 죽이기

ps -ef | grep defunct | awk '{print $3}' | xargs kill -9

apache mpm 설정(펌)

1. 전제 조건 - apache 설치 시에 아래와 같이, 반드시   --with-mpm=worker  옵션을 설정 하고 설치한다.     이 옵션을 주지 않을 경우, Default인 Prefork방식으로 설치된다(Linux에 한함) ================================================================ ./configure --prefix=/home/paint/apache-2.2.15 --enable-mods-shared=all --enable-module=so --enable-so   --with-mpm=worker ================================================================ * 현재 worker 모듈 설치 되었는지 확인법 - "httpd -l" 명령으로 현재 설치된 Apache가 worker방식으로 설치되었는지 확인할 수 있다. ============================================ # httpd -l Compiled in modules:   core.c   worker.c   http_core.c   mod_so.c ============================================ 또는, httpd -V 명령으로 확인 가능하다. (V는 대문자) ============================================ # httpd -V Server version: Apache/2.2.15 (Unix) Server built:   Jun 30 2010 16:59:45 Server's Module Magic Number: 20051115:24 Server loaded:  APR 1.4.2, APR-Util 1.3.9 C...

max Client 늘리기

apache 1.3.x 버전 대를 제외한 (1.3은 max값 1024으로 설정) apache 2.0.x, apache 2.2.x 에서는 max client 가 기본설정값인 150 으로 설정되어 있습니다. 따라서 max 값을 변경하고자 할 경우 다음과 같이 환경설정 파일에서 수정하면 됩니다. ※ apache 2.0.x, 2.2.x 서버는 worker 방식으로 동작하며, 컴파일시 자동으로 max 값은 패치되어 있습니다. 1. apache 2.0.x /usr/local/apache/conf/httpd.conf 에서 수정합니다. 〈IfModule worker.c> StartServers         2 -> 32 MaxClients         150 -> 1024 or 2048 값으로 수정 (max: 2048) MinSpareThreads     25 MaxSpareThreads     75 ThreadsPerChild     25 -> 64 값으로 수정 MaxRequestsPerChild  0 〈/IfModule> 수정후 apache 데몬 재시작 2. apache 2.2.x 먼저 /usr/local/apache/conf/httpd.conf 에서 419번째 줄쯤 Include conf/extra/httpd-mpm.conf 주석해제후 저장합니다. /usr/local/apache/conf/extra/httpd-mpm.conf 수정합니다. 〈IfModule mpm_worker_module>     StartServers          2 -> 32     MaxClients        ...

apache tomcat 연동

RedHat Linux 기반의 Sulinux 1.5 ( http://www.sulinux.net/ ) Apache 2.2.4 ( http://www.apache.org/  - httpd) Mysql 5.0.37 ( http://www.mysql.com/ ) Tomcat 6.0.10 ( http://www.apache.org/  - tomcat ) JDK 6.0 ( http://java.sun.com/ ) Apache-Tomcat Connector (Jk Connector 1.2.21) ( http://www.apache.org/  - tomcat - connector) 모두  linux 용, Non-RPM 버전으로 받아서 설치하였음. 받은 모든 파일들은 /usr/local/ 로 ftp 전송등으로 복사. Mysql SHELL> tar xzvf mysql파일명.확장자 SHELL> ln -s /usr/local/mysql디렉토리명  mysql                       mysql디렉토리에 대한 링크를 만듬. (윈도우의 바로가기 같은 개념--;) SHELL> cd mysql SHELL> adduser -M mysql SHELL> chown -R root /usr/local/mysql SHELL> chown -R mysql /usr/local/mysql/data SHELL> ./configure 자동으로 실행까지 한다. SHELL> cp /usr/local/mysql/support-files/my-medium.cnf   /etc/my.cnf SHELL> ps             (mysqld_safe 가 있는지 확인.) SHELL> cd bin  (/usr/l...

아파치 웹서버 설정하기

http://wiki.kldp.org/KoreanDoc/html/ServerAdmin-KLDP/ServerAdmin-KLDP-8.html