为什么80%的码农都做不了架构师?>>>   

  1. 下载源码包

    1.1 subversion 源码包 http://subversion.apache.org/download/

    1.2下载sqlite-amalgamation

此处用的版本 subversion-1.8.9.tar.gz

sqlite-amalgamation-201408010140.zip

2.请参照 http://my.oschina.net/u/234018/blog/297849 安装apr apr-util apache

3. 解压 安装

 tar -zxvf subversion-1.8.9.tar.gzwget http://www.sqlite.org/sqlite-amalgamation-3071501.zipunzip sqlite-amalgamation-3071501.zipmkdir /home/devtac/soft/subversion-1.8.9/sqlite-amalgamationcp ./sqlite-amalgamation-3071501/* /home/devtac/soft/subversion-1.8.9/sqlite-amalgamation./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-apxs=/usr/local/apache/bin/apxs --with-openssl   --enable-maintainer-modemakemake install

4.检测是否安装成功

[root@localhost data]# cd /usr/local/subversion/bin/
[root@localhost bin]# pwd
/usr/local/subversion/bin
[root@localhost bin]# ll
总用量 6780
-rwxr-xr-x 1 root root 4580966 8月   5 13:55 svn
-rwxr-xr-x 1 root root  211775 8月   5 13:55 svnadmin
-rwxr-xr-x 1 root root  163522 8月   5 13:55 svndumpfilter
-rwxr-xr-x 1 root root  222480 8月   5 13:55 svnlook
-rwxr-xr-x 1 root root  162722 8月   5 13:55 svnmucc
-rwxr-xr-x 1 root root  495959 8月   5 13:55 svnrdump
-rwxr-xr-x 1 root root  683761 8月   5 13:55 svnserve
-rwxr-xr-x 1 root root  289204 8月   5 13:55 svnsync
-rwxr-xr-x 1 root root  115601 8月   5 13:55 svnversion
[root@localhost bin]# svnserve --version
svnserve,版本 1.6.11 (r934486)编译于 Apr 12 2012,11:09:11版权所有 (C) 2000-2009 CollabNet。
Subversion 是开放源代码软件,请参阅 http://subversion.tigris.org/ 站点。
此产品包含由 CollabNet(http://www.Collab.Net/) 开发的软件。下列版本库后端(FS) 模块可用: * fs_base : 模块只能操作BDB版本库。
* fs_fs : 模块与文本文件(FSFS)版本库一起工作。Cyrus SASL 认证可用。

5 subversion 配置环境变量(可以不用到subversion 的bin目录下执行subversion 命令了 )

cp /etc/profile /etc/profile.bak.20140805
vi /etc/profile文件最后加入
SVNPATH=$PATH:/usr/local/subversion/bin
export SVNPATH

6.创建仓库

svnadmin 只能创建一级目录,如果直接执行

mkdir -p /home/devtac/svn/case

在后面用客户端checkout 的时候有时会报错

报错 : 期望文件系统格式在"1"到"4"之间;发现格式"6"

正解:

cd /home/devtac
mkdir svn
svnadmin create /home/devtac/svn/case

创建好后,有如下目录

[root@localhost bin]# cd /home/devtac/svn/case/
[root@localhost case]# ll
总用量 24
drwxr-xr-x 2 root root 4096 8月   5 16:41 conf
drwxr-sr-x 6 root root 4096 8月   5 16:45 db
-r--r--r-- 1 root root    2 8月   5 16:36 format
drwxr-xr-x 2 root root 4096 8月   5 16:36 hooks
drwxr-xr-x 2 root root 4096 8月   5 16:36 locks
-rw-r--r-- 1 root root  229 8月   5 16:36 README.txt

7 修改配置文件

主要修改 /home/devtac/svn/case/conf

root@localhost conf]# pwd
/home/devtac/svn/case/conf
[root@localhost conf]# ls
authz  passwd  svnserve.conf  svnserve.conf.bak
[root@localhost conf]# ls -al
总用量 24
drwxr-xr-x 2 root root 4096 8月   5 16:41 .
drwxr-xr-x 6 root root 4096 8月   5 16:36 ..
-rw-r--r-- 1 root root 1144 8月   5 16:37 authz
-rw-r--r-- 1 root root  350 8月   5 16:38 passwd
-rw-r--r-- 1 root root 3995 8月   5 16:41 svnserve.conf
-rw-r--r-- 1 root root 2279 8月   5 16:37 svnserve.conf.bak

主要修改

svnserve.conf

anon-access = none (匿名用户不能访问)

auth-access = write   (认证用户 可读可写)

password-db = passwd(用户密码文件)

authz-db = authz

详细解释请读配置文件svnserve.conf里注释

注意:

### users have read and write access to the repository.
anon-access = none
auth-access = write

auon-access 前面不能有空格,auth-access 也不能有,svnserve.conf 每行修改的行首都不要有空格

否则 后面客户端checkout 又会报错。

passwd 配置账号密码

[root@localhost conf]# more passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.[users]
# harry = harryssecret
# sally = sallyssecret
admin = admin
tac = lovelife
test = test

authz 配置权限 如下

[root@localhost conf]# more authz
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
###  - a single user,
###  - a group of users defined in a special [groups] section,
###  - an alias defined in a special [aliases] section,
###  - all authenticated users, using the '$authenticated' token,
###  - only anonymous users, using the '$anonymous' token,
###  - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
user = admin,tac,test
# [/foo/bar]
# harry = rw
# &joe = r
# * =# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[/]
user = rw
admin = rw
tac = rw
test = r

配置文件暂时修改完毕

8. 导入代码库 到仓库

 1423  mkdir -p /tmp/data/1424  echo '1111' >/tmp/data/index.html1425  echo '2222' >/tmp/data/2.html1426  ./svn import /tmp/data/ file:///home/devtac/svn/case -m "testttttttest"

9.安装客户端

TortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msi

10. checkout

10.1 先 在server 端把svn 默认端口加到iptables 里

重启iptable

10.2 启动 svn

svnserve -d -r /home/devtac/svn/case

10.2 客户端 checkout

我这边url 里写的是:

svn://192.168.2.241

完工

谢谢网络诸君

转载于:https://my.oschina.net/tacg/blog/298292

subversion linux 服务器端搭建 源码安装相关推荐

  1. linux怎么用源码安装mysql,Linux源码安装mysql步骤

    创建文件夹: mkdir  /usr/local/webserver 安装必要依赖包 yum -y install gcc gcc-c++ make ncurses-devel 安装cmake包: t ...

  2. linux系统下源码安装mysql5.6数据库

    linux系统下源码安装mysql5.6数据库 下载mysql数据库相关软件包(百度云盘:http://pan.baidu.com/s/1bnL31c7) 从mysql 5.5版本开始,mysql源码 ...

  3. linux python3.8源码安装_linux 下从源码安装 Python——小白踩坑记

    实验室服务器使用的系统为 Ubuntu 16.04,自带的 python 版本为 Python 2.7.12 和 Python 3.5.2,命令行下使用$ python命令来启动 python 时默认 ...

  4. linux安装源码mysql失败,linux停mysql源码安装

    当前位置:我的异常网» Linux/Unix » linux停mysql源码安装 linux停mysql源码安装 www.myexceptions.net  网友分享于:2013-07-19  浏览: ...

  5. linux access源码,从零开始学习Linux:Day04 源码安装Nginx 。acess/status/referer

    从零开始学习Linux:Day04 源码安装Nginx .acess/status/referer 常见web服务器有IIS,apche,nginx,tomcat,tengine等等,现在nginx使 ...

  6. Linux上全源码安装Apache、MySQL、PHP、WSF安装(转载)

    Linux上全源码安装Apache.MySQL.PHP.WSF安装 博客分类: PHP PHPMySQLApacheLinuxSQLite Linux上全源码安装Apache.MySQL.PHP.WS ...

  7. Linux 6.8 源码安装MySQL8.0

    搭建环境说明: 系统版本:Red Hat Enterprise Linux Server release 6.8 (Santiago) 内核版本:Linux 2.6.32-642.el6.x86_64 ...

  8. 三星note4安装linux,Leanote Ubuntu 源码安装

    Leanote Ubuntu 源码安装 1 安装golang 2 安装MongoDB 2.1 安装MongoDB 从 Mongodb 官网 获取相应系统的最新版安装链接,笔者以 Ubuntu18.04 ...

  9. H323测试环境搭建--源码安装H32Plus与 PTLib

    简介 H323Plus:用于开发使用 H.323 协议在基于分组的网络上进行多媒体通信的应用程序 PTLib:是一个库文件,提高平台的独立性,设计初衷是为了能让Openh323在Windows和Uni ...

最新文章

  1. dnf用虚拟机会被制裁吗_差点把DNF搞关服的私服,这次终于被大话西游手游拿下了...
  2. GAN网络立功!36分钟,建起5亿光年的宇宙区域
  3. 部署在云上的Fiori launchpad,其tile信息是从哪里取出来的
  4. 华润置地php面试题_从一流到顶流|2020华润置地与沈阳一起美好
  5. Jquery实现简单图片切换
  6. libevent 例子,从简单到复杂
  7. 如何构建可视化的营销数据大屏? 1
  8. mysql5.6.38占用内存过大问题解决
  9. 巧用 TypeScript(四)
  10. c语言语句结束的标准,C语言的语句要求以哪种符号结束?
  11. Android之bugly使用
  12. medusa详细教程
  13. Android 开发笔记___图像按钮__imageButton
  14. 达梦数据库-国产的荣光
  15. 1分钟利用Excel快速制作随机点名器
  16. 【vue+pc端】实现微信扫码登录pc端,后端通过微信开发平台,前端生成二维码(仅供参考)
  17. 12种工作让你摇身变富豪
  18. 恒星日和太阳日【转载】
  19. 自适应直方图均衡(CLAHE) 代码及详细注释【OpenCV】
  20. android 播放器 sma,SMA测评软件下载-SMA测评安卓版v1.1.2-魅卓网

热门文章

  1. 灭火器摆放识别检测算法 yolo
  2. 微前端 - qiankun
  3. 祭奠_即将消失的JSP
  4. 计算机组装维护教学工作总结,计算机组装与维护教师工作总结_2
  5. Flex:对日本旧历日期及其它输入内容的验证。
  6. 【逆向】Android App soul api-sign算法分析
  7. 小程序如何本地去水印,基于很多小白写的教程
  8. 【阿贝云】免费的云服务器,真香
  9. Android微信浏览器标题,微信浏览器设置网页标题
  10. 服务器系统升级文件转移,多可系统迁移说明