1.准备如下软件包:
apr-1.3.8.tar.gz与apr-util-1.3.9.tar.gz
http-2.2.14.tar.gz
subversion-1.5.5.tar.gz
subversion-deps-1.5.5.tar.gz
2.安装apr-1.3.8.tar.gz
tar -zvxf apr-1.2.12.tar.gz
cd apr-1.2.12
./configure 默认安装到/usr/local/apr
make;
make install;
3. 安装apr-util-1.3.9.tar.gz
tar -zvxf apr-util-1.3.9.tar.gz
cd apr-util-1.3.9
./configure --with-apr=/usr/local/apr
make;
make instal;
4.安装http-2.2.14.tar.gz
tar -zvxf http-2.2.14.tar.gz
cd http-2.2.14
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apr-1-config --enable-so --enabel-day --enable-maintainer-mode --enable-rewrite --enalbe-ssl --with-ssl=/usr/local/ssl
make;
make install;
5.启动apache
/usr/local/apache/bin/apachectl start
登录网站,显示“IT works”
6.tar -zvxf subversion-1.5.5.tar.gz
tar -zvxf subversion-deps-1.5.5.tar.gz
cd subversion-1.5.5
rm -rf apr
rm -rf apr-util
./configure --prefix=/usr/local/svn --with-apxs=/usr/local/apache/bin/apxs -with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-ytil=/usr/local/apache/bin/apr-1-config --with-ssl --enable-maintainer-mode
make;
make install;
/usr/local/svn/bin/svnserver -version 查看版本
7.创建svn库
mkdir /svn
添加用户svn_admin 组svn_admin
8.创建版本库
/usr/local/svn/bin/svnadmin create /svn/test
chown -R svn_admin:svn_admin /svn/test
chmod -R 700 /svn/test
9.修改/usr/local/apache/conf/httpd.conf
修改listen端口 8443
user daemon修改为 user svn_admin
group daemon修改为 group svn_adminv
设置
DAV SVN
svnpath /svn/test
AuthzSVNAcessFile /svn/auth.conf.test
require valid-user
Authtype Basic
AuthNmae "hello!"
AuthuserFiel /svn/svn-user-file
/usr/local/apache/bin/apachectel restart
10.创建用户
/apache/bin/httpasswd -c /etc/svn-user-file user1
第二次创建不用加-c
11.编辑/etc/auth.conf.test
[test:/]
svn_admin=ew
@group1=r
[group]
groups=svn_admin1,svnadmi2
配置ssl
在http.conf中去掉
#include conf/extra/httpd-ssl/conf
在中加入
SSLRequire SSL,
产生私有密钥 %openssl req -new -key serverkey -out server,csr
签署密钥 %openssl x509 -req -days 4000 -in server,csr -singkey server,.key -out server.sct
配置/usr/local/apache/conf/extra/httpd-ssl.conf
修改SSLcertificate File "/usr/local/apache/conf/ssl.key/server.crt
SSLcertificate File "/usr/local/apache/conf/ssl.key/server.key
重启httpd的服务
阅读(1058) | 评论(0) | 转发(0) |