[root@CentOS5 soft]# tar zxvf httpd-2.2.17.tar.gz
[root@CentOS5 soft]# cd httpd-2.2.17
[root@CentOS5 httpd-2.2.17]# ./configure --prefix=/usr/local/apache
[root@CentOS httpd-2.2.17]# make
[root@CentOS httpd-2.2.17]# make install
[root@CentOS httpd-2.2.17]# make clean
[root@CentOS httpd-2.2.17]# /usr/local/apache/bin/apachectl -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_version.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
这是安装完的模块
[root@CentOS httpd-2.2.17]# /usr/local/apache/bin/apachectl start 启动
[root@CentOS httpd-2.2.17]# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
[root@CentOS httpd-2.2.17]# vi /etc/init.d/httpd
#!/bin/sh
#chkconfig:3 4 5
#description:start and stop the http server
添加以上2行.其实有chkconfig跟下面的description这2个就可以,后面随便写吧.或这样写
#chkconfig:3 4 5
#description:http
这样随便写就可以了.为了chkconfig这上命令
[root@CentOS httpd-2.2.17]#chkconfig --add httpd
[root@CentOS httpd-2.2.17]#service httpd restart
本文出自 “冰鱼客” 博客,请务必保留此出处http://guailele.blog.51cto.com/1156442/469112
拥有帝国一切,皆有可能。欢迎访问phome.net |