- 论坛徽章:
- 0
|
平台centos4.6
下载:httpd-2.0.63.tar.gz
wget下来
tar -zxvf httpd-2.0.63.tar.gz
#cd httpd-2.0.63.
编译apache2
# ./configure --enable-dav --enable-so --enable-maintainer-mode
# make
# make install
安装svn
subversion-1.4.2.tar.gz
subversion-deps-1.4.2.tar.bz2
#tar -zxvf subversion-1.4.2.tar.gz
#tar -xvjf subversion-deps-1.4.2.tar.bz2
#cd subversion-1.4.2
#./configure --with-apxs=/usr/local/apache2/bin/apxs
#make
#make install
生成 Apache 启动文件
#rpm -q httpd
package httpd is not installed //???????????
#/etc/init.d/httpd start
no this file
#/usr/local/apache2/bin/apachectl -k restart
OK
请问怎么做成HTTPD自启动,还有SVN,编译时总出错,不过,还能够运行
#svn --version
svn, version 1.4.2 (r22196)
compiled Aug 15 2008, 09:06:13
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
另外查找资料说此方法可做成HTTPD自启动,但我按此方法做的时候,提示
chkconfig --level 35 httpd on
service httpd does not support chkconfig
什么问题?谢谢!另外做软链接,听说 要做7个,有没有简单的方法!
# cd /etc/rc.d/init.d
# sed 's/sbin\/atd/local\/apache2\/bin\/httpd/g' atd > httpd
# sed 's/atd/httpd/g' httpd > /tmp/txt
# sed 's/at daemon/httpd daemon/g' /tmp/txt > httpd
# rm /tmp/txt
# chmod 755 httpd
# chkconfig --level 345 httpd on
# chkconfig --level 0126 httpd off
启动并测试Apache服务器
# /etc/rc.d/init.d/httpd start
如果出现:
Starting httpd daemon: [ OK ]
[ 本帖最后由 linuxpf 于 2008-8-15 11:18 编辑 ] |
|