Apache的安装过程
项目中Apache的安装过程记录,
# groupadd -g 300 apache
# useradd -g 300 -u 300 -d /usr/local/apache -g apache apache
# tar xvzf httpd-2.2.11.tar.gz
# cd httpd-2.2.11
# cd srclib/apr
# ./configure --prefix=/usr/local/apache2
# make
# make install
# cd ../apr-util
# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apache2
# make
# make install
# cd ../../
# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 \
> --enable-mods-shared=most --enable-usertrack=shared
# make
# make install
# vi /usr/local/apache2/conf/httpd.conf
添加 LoadModule usertrack_module modules/mod_usertrack.so
修改 User apache
修改 Group apache
# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
# vi /etc/rc.d/init.d/httpd
#!/bin/sh
添加 # chkcopnfig: 35 90 15
添加 # description:httpd
# chkconfig --add httpd
# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
页:
[1]