网站推荐、资源下载等 | 个人网站

Linux安装svn


1. 下载

  1. 历史版本

下载参考:https://blog.csdn.net/hylaking/article/details/78262329

  1. 具体下载版本

2. 上传之后解压

  1. tar -zxvf /opt/svn/apr-1.7.0.tar.gz -C /opt/svn
  2. tar -zxvf /opt/svn/apr-util-1.6.1.tar.gz -C /opt/svn
  3. tar -zxvf /opt/svn/zlib-1.2.11.tar.gz -C /opt/svn
  4. tar -zxvf /opt/svn/subversion-1.14.0.tar.gz -C /opt/svn
  5. tar -zxvf /opt/svn/sqlite-autoconf-3330000.tar.gz -C /opt/svn

3. 安装

  1. 安装apr
cd /opt/svn/apr-1.7.0
./configure --prefix=/opt/svn/apr-1.7.0
make && make install

可能报错:configure: error: no acceptable C compiler found in $PATH
解决,运行命令:sudo yum install gcc-c++

https://blog.csdn.net/liang_0609/article/details/93967440

执行yum命令,centos8再报错
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

解决

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all && yum makecache

如果报错
错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist
运行命令:mv /etc/yum.repos.d/CentOS-Linux-AppStream.repo /etc/yum.repos.d/CentOS-Linux-AppStream.repo.bak

再运行:yum clean all && yum makecache
如果报错
错误:为 repo 'baseos' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist
运行命令:mv /etc/yum.repos.d/CentOS-Linux-BaseOS.repo /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.bak
再运行:yum clean all && yum makecache

再执行:sudo yum install gcc-c++

  1. 安装apr-util
cd /opt/svn/apr-util-1.6.1
./configure --prefix=/opt/svn/apr-util-1.6.1 --with-apr=/opt/svn/apr-1.7.0
make

编译报错:xml/apr_xml.c:35:19: 致命错误:expat.h:没有那个文件或目录
解决运行命令:yum install -y expat-devel

https://blog.csdn.net/weixin_43930641/article/details/105269092

make && make install
  1. 安装zlib
cd /opt/svn/zlib-1.2.11
./configure --prefix=/opt/svn/zlib-1.2.11
make && make install
  1. 移动sqlite到subversion安装目录里面
mv /opt/svn/sqlite-autoconf-3330000 /opt/svn/subversion-1.14.0/sqlite-amalgamation
  1. 安装subversion
cd /opt/svn/subversion-1.14.0
./configure --prefix=/opt/svn/subversion-1.14.0 --with-apr=/opt/svn/apr-1.7.0 --with-apr-util=/opt/svn/apr-util-1.6.1 --with-zlib=/opt/svn/zlib-1.2.11 --with-lz4=internal --with-utf8proc=internal
make && make install

4. 添加环境变量

  1. /etc/profile文件添加export PATH=$PATH:/opt/svn/subversion-1.14.0/bin
  2. 重新加载资源:source /etc/profile
  3. 查看是否安装svn成功:svnserve --version

具体命令

vim /etc/profile
export PATH=$PATH:/opt/svn/subversion-1.14.0/bin
source /etc/profile
svnserve --version

5. 配置svn

  1. 创建svn版本库目录
svnadmin create /opt/svn/myproject
  1. 修改版本库配置文件svnserve.conf
vim /opt/svn/myproject/conf/svnserve.conf

修改

# 使非授权用户无法访问
anon-access = read
# 使授权用户有写权限
auth-access = write
# 指明密码文件路径
password-db = passwd
# 访问控制文件
authz-db = authz
  1. 修改passwd文件
vim /opt/svn/myproject/conf/passwd

设置用户密码

[users]
lw = Lw2022
test = Ts2022
  1. 修改authz文件
vim /opt/svn/myproject/conf/authz

设置权限

[groups]
lwg = lw,test

[/]

@lwg = rw

6. 启动svn

svnserve -d -r /opt/svn/myproject --listen-port 3690

7. 查看是否启动

  1. 第一种查看端口:netstat -nlp | grep 3690
  2. 第二种查看应用启动:ps -ef | grep svn

8. 检查端口是否开放

  1. 防火墙,如果没有启动就不用处理
    查看防火墙:systemctl status firewalld
firewall-cmd --add-port=3690/tcp --permanent
  1. 如果是云服务器,需要开放端口
    阿里云服务器开放端口

9. 登陆

svn://8.130.104.71:3690
image

10. 命令汇总

#!/bin/bash

tar -zxvf /opt/svn/apr-1.7.0.tar.gz -C /opt/svn
tar -zxvf /opt/svn/apr-util-1.6.1.tar.gz -C /opt/svn
tar -zxvf /opt/svn/zlib-1.2.11.tar.gz -C /opt/svn
tar -zxvf /opt/svn/subversion-1.14.0.tar.gz -C /opt/svn
tar -zxvf /opt/svn/sqlite-autoconf-3330000.tar.gz -C /opt/svn

cd /opt/svn/apr-1.7.0
./configure --prefix=/opt/svn/apr-1.7.0
make && make install
sudo yum install gcc-c++

cd /opt/svn/apr-util-1.6.1
./configure --prefix=/opt/svn/apr-util-1.6.1 --with-apr=/opt/svn/apr-1.7.0
make
yum install -y expat-devel
make && make install

cd /opt/svn/zlib-1.2.11
./configure --prefix=/opt/svn/zlib-1.2.11
make && make install

mv /opt/svn/sqlite-autoconf-3330000 /opt/svn/subversion-1.14.0/sqlite-amalgamation

cd /opt/svn/subversion-1.14.0
./configure --prefix=/opt/svn/subversion-1.14.0 --with-apr=/opt/svn/apr-1.7.0 --with-apr-util=/opt/svn/apr-util-1.6.1 --with-zlib=/opt/svn/zlib-1.2.11 --with-lz4=internal --with-utf8proc=internal
make && make install

11. 参考文章

文章来源1:https://blog.csdn.net/Saint_EK/article/details/108039254
参考文章1:https://www.cnblogs.com/code4app/p/7202039.html
参考文章2:https://www.runoob.com/svn/svn-start-mode.html

12. 以前转载的文章

【转】Ubuntu环境搭建svn服务器

posted @ 2022-08-09 22:30  xiaostudy  阅读(283)  评论(0编辑  收藏  举报
网站推荐
[理工最爱]小时百科 |  GitHub |  Gitee |  开源中国社区 |  牛客网 |  不学网论坛 |  r2coding |  冷熊简历 |  爱盘 |  零散坑 |  bootstrap中文网 |  vue.js官网教程 |  源码分享站 |  maven仓库 |  楼教主网站 |  廖雪峰网站 |  w3cschool |  在线API |  代码在线运行 |  [不学网]代码在线运行 |  JS在线运行 |  PHP中文网 |  深度开源eclipse插件 |  文字在线加密解密 |  菜鸟教程 |  慕课网 |  千图网 |  手册网 |  素材兔 |  盘多多 |  悦书PDF |  sumatra PDF |  calibre PDF |  Snipaste截图 |  shareX截图 |  vlc-media-player播放器 |  MCMusic player |  IDM下载器 |  格式工厂 |  插件网 |  谷歌浏览器插件 |  Crx搜搜 |  懒人在线计算器 |  leetcode算法题库 |  layer官网 |  layui官网 |  formSelects官网 |  Fly社区 |  程序员客栈 |  融云 |  华为云 |  阿里云 |  ztree官网API |  teamviewer官网 |  sonarlint官网 |  editormd |  pcmark10官网 |  crx4chrome官网 |  apipost官网 |  花生壳官网 |  serv-u官网 |  杀毒eset官网 |  分流抢票bypass官网 |  懒猴子CG代码生成器官网 |  IT猿网 |  natapp[内网穿透] |  ngrok[内网穿透] |  深蓝穿透[内网穿透] |  WakeMeOnLan[查看ip] |  iis7 |  [漏洞扫描]Dependency_Check官网 |  [图标UI]fontawesome官网 |  idea插件官网 |  路过图床官网 |  sha256在线解密 |  在线正则表达式测试 |  在线文件扫毒 |  KuangStudy | 
资源下载
电脑相关: Windows原装下载msdn我告诉你 |  U盘制作微PE工具官网下载 |  Linux_CentOS官网下载 |  Linux_Ubuntu官网下载 |  Linux_OpenSUSE官网下载 |  IE浏览器官网下载 |  firefox浏览器官网下载 |  百分浏览器官网下载 |  谷歌google浏览器历史版本下载 |  深度deepin系统官网下载 |  中兴新支点操作系统官网下载 |  文件对比工具Beyond Compare官网下载 |  开机启动程序startup-delayer官网下载 |  openoffice官网下载 |  utorrent官网下载 |  qbittorrent官网下载 |  cpu-z官网下载 |  蜘蛛校色仪displaycal官网下载 |  单文件制作greenone下载 |  win清理工具Advanced SystemCare官网下载 |  解压bandizip官网下载 |  内存检测工具memtest官网下载 |  磁盘坏道检测与修复DiskGenius官网下载 |  磁盘占用可视化SpaceSniffer官网下载 |  [磁盘可视化]WizTree官网下载 |  win快速定位文件Everything官网下载 |  文件定位listary官网下载 |  动图gifcam官网下载 |  7-Zip官网下载 |  磁盘分区工具diskgenius官网下载 |  CEB文件查看工具Apabi Reader官网下载 |  罗技鼠标options官网下载 |  [去除重复文件]doublekiller官网下载 | 
编程相关: ApacheServer官网下载 |  Apache官网下载 |  Git官网下载 |  Git高速下载 |  Jboss官网下载 |  Mysql官网下载 |  Mysql官网历史版本下载 |  NetBeans IDE官网下载 |  Spring官网下载 |  Nginx官网下载 |  Resin官网下载 |  Tomcat官网下载 |  jQuery历史版本下载 |  nosql官网下载 |  mongodb官网下载 |  mongodb_linux历史版本下载 |  mongodb客户端下载 |  VScode官网下载 |  cxf官网下载 |  maven官网下载 |  QT官网下载 |  SVN官网下载 |  SVN历史版本下载 |  nodeJS官网下载 |  oracle官网下载 |  jdk官网下载 |  STS官网下载 |  STS历史版本官网下载 |  vue官网下载 |  virtualbox官网下载 |  docker desktop官网下载 |  github desktop官网下载 |  EditPlus官网下载 |  zTree下载 |  layui官网下载 |  jqgrid官网下载 |  jqueryui官网下载 |  solr历史版本下载 |  solr分词器ik-analyzer-solr历史版本下载 |  zookeeper历史版本官网下载 |  nssm官网下载 |  elasticsearch官网下载 |  elasticsearch历史版本官网下载 |  redis官网下载 |  redis历史版本官网下载 |  redis的win版本下载 |  putty官网下载 |  查看svn密码TSvnPD官网下载 |  MongoDB连接工具Robo官网下载 |  dll查看exescope官网下载 |  dll2c官网下载 |  接口测试apipost官网下载 |  接口测试postman官网下载 |  原型设计工具AxureRP官网下载 |  canal官网下载 |  idea主题样式下载 |  vue的GitHub下载 |  finalShell官网下载 |  ETL工具kafka官网下载 |  cavaj[java反编译]官网下载 |  jd-gui[java反编译]官网下载 |  radmin[远程连接]官网下载 |  tcping[win ping端口]下载 |  jQueryUploadFile官网下载 |  RedisPlus下载 |  aiXcoder智能编程助手官网下载 |  [表单效验]validform官网下载 |  idea官网下载 |  RedisStudio下载 |  MD转word含公式pandoc官网下载 |  logviewer官网下载 |  Kafka官网下载 |  hbase高速下载 |  hadoop官网下载 |  hadooponwindows的GitHub下载 |  hive官网下载 |  soapui官网下载 |  flink官网下载 |  kafkatool官网下载 |  MinIO官网下载 |  MinIO中国镜像下载 | 
办公相关工具
免费在线拆分PDF【不超过30M】 |  免费在线PDF转Word【不超过10M】 |  在线文字识别转换【不超过1M】 |  PDF转换成Word【不超过50M】 |  在线OCR识别 |  Smallpdf |  文件转换器Convertio |  迅捷PDF转换器 |  字母大小写转换工具 |  档铺 |  快传airportal[可文字] |  快传-文叔叔 |  P2P-小鹿快传 |  [图床]ImgURL | 
网站入口
腾讯文档 |  有道云笔记网页版 |  为知笔记网页版 |  印象笔记网页版 |  蓝奏云 |  QQ邮箱 |  MindMaster在线思维导图 |  bilibili |  PDM文件在线打开 |  MPP文件在线打开 |  在线PS软件 |  在线WPS |  阿里云企业邮箱登陆入口 | 
其他
PDF转换 |  悦书PDF转换 |  手机号注册查询 |  Reg007 |  akmsg |  ip8_ip查询 |  ipip_ip查询 |  天体运行testtubegames |  测试帧率 |  在线网速测试 |