linux centos installs svn server with http
来源:互联网 发布:python scikit learn 编辑:程序博客网 时间:2024/04/29 23:20
Install SVN (Subversion) Server on Fedora 19/18/17/16/15/14, CentOS 6.4/6.3/6.2/6.1/6/5.9, Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9
1. Change root user
su -## OR ##sudo -i
2. Install needed packages (mod_dav_svn and subversion)
yum install mod_dav_svn subversion
Note: If you don’t have Apache installed already, this command installs it also.Read more about installing Apache and PHP >>
3. Modify Subversion config file /etc/httpd/conf.d/subversion.conf
Add following config to /etc/httpd/conf.d/subversion.conf file:
LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so <Location /svn> DAV svn SVNParentPath /var/www/svn AuthType Basic AuthName "Subversion repositories" AuthUserFile /etc/svn-auth-users Require valid-user</Location>
Read more SVN Access Control >>
4. Add SVN (Subversion) users
Use following command:
## Create testuser ##htpasswd -cm /etc/svn-auth-users testuserNew password: Re-type new password: Adding password for user testuser ## Create testuser2 ##htpasswd -m /etc/svn-auth-users testuser2New password: Re-type new password: Adding password for user testuser2
Note: Use exactly same file and path name as used on subversion.conf file. This example use/etc/svn-auth-users file.
Read more SVN Access Control >>
5. Create and configure SVN repository
mkdir /var/www/svncd /var/www/svn svnadmin create testrepochown -R apache.apache testrepo ## If you have SELinux enabled (you can check it with "sestatus" command) #### then change SELinux security context with chcon command ## chcon -R -t httpd_sys_content_t /var/www/svn/testrepo ## Following enables commits over http ##chcon -R -t httpd_sys_rw_content_t /var/www/svn/testrepo
Restart Apache:
/etc/init.d/httpd restart## OR ##service httpd restart
Goto http://localhost/svn/testrepo address and you should see something like following, write username and password:
SVN testrepo revision 0:
6. Configure repository
To disable anonymous access and enable access control add following rows totestrepo/conf/svnserve.conf file:
## Disable anonymous access ##anon-access = none ## Enable access control ##authz-db = authz
7. Create trunk, branches and tags structure under testrepo
Create “template” directories with following command:
mkdir -p /tmp/svn-structure-template/{trunk,branches,tags}
Then import template to project repository using “svn import” command:
svn import -m 'Initial import' /tmp/svn-structure-template/ http://localhost/svn/testrepo/Adding /tmp/svn-structure-template/trunkAdding /tmp/svn-structure-template/branchesAdding /tmp/svn-structure-template/tags Committed revision 1.
- linux centos installs svn server with http
- CentOS Linux下配置svn HTTP server
- centos 安装svn server( http https )
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建SVN Server配置详解
- CentOS Linux搭建独立SVN Server
- CentOS Linux系统搭建SVN server服务
- CentOS Linux搭建SVN Server配置详解
- Apache http server linux centos 安装
- CentOS搭建SVN(HTTP)
- CentOS安装SVN Server
- CentOS安装SVN server
- node.js 的crypto模块用来加密
- cocos2d-x总结(六) cocos2d-x与ISO内存管理
- jQuery-----效果
- 安卓自测试题——第十六期
- 设计模式六大原则(1):单一职责原则
- linux centos installs svn server with http
- 本地推送
- 一款开源的自动化测试工具curl-loader
- nyoj 2 括号匹配
- Standford NG机器学习 神经网络(Neural Network)的表示
- 关中地带有关饮食的趣闻
- 在一个页面多个 multiple select 框
- 安卓自测试题——第十七期
- nyoj42(一笔画)