본문 바로가기

리눅스

[Apache] apache(httpd-2.2.12) 설치

반응형

apache(httpd-2.2.12) 설치

 ver : httpd-2.2.12

# useradd -c "Apache" -u 48 -s /sbin/nologin -m -d /home/www apache

# ./configure --prefix=/usr/local/apache2 --enable-so --enable-shared=max --enable-rewrite --enable-ssl --enable-proxy

# make

# make install

 

# cp -p /usr/local/apache2/bin/apachectl /etc/init.d/httpd

 

# vi /etc/init.d/httpd

-----------------------------------------------------------------------

아래 두 라인 추가

# chkconfig: 2345 80 30

# description: HTTPD

-----------------------------------------------------------------------

 

# chkconfig --add httpd

# chkconfig --level 345 httpd on

# chkconfig --list | grep httpd

 

# /usr/local/apache2/bin/apachectl start

 

# ps -ef | grep httpd

 

 

728x90
반응형