apache的rpm包安装和源码安装
rpm: yum install httpd其配置文件和源码差不多,将在后者里将
源码安装:apache
tar xf httpd-2.2.19.tar
cd httpd-2.2.19ls
编译: ./configure --prefix=/usr/loacl/apache--sysconfdir=/etc/httpd --enable-ssl --enable-modules=most --enable-mods-shared=most--enable-so
make
make install
弄一个httpd,
vi /etc/init.d/httpdapachectl=/usr/local/apache/bin/apachectl
httpd=/usr/local/apache/bin/httpd
cd/etc/httpdls
vi /etc/httpd/conf/httpd.conf
启动 PATH=$PATH:/usr/local/apache/bin
apachectl start
chkconfig --add httpd
cphttpd /etc/init.d/httpd
可能会出现不能启动
vi /etc/httpd/conf/httpd.confPidFile "/var/run/httpd.pid"
killall httpd
chkconfig --level 2345 httpd on
页:
[1]