惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 方寸心间

改进的前序遍历树模型(The Nested Set Model) Strtus2 Convention Plugin - 方寸心间 【转】Java数组排序总结(冒泡,选择,插入,希尔) hibernate3.2由hbm文件生成pojo和ddl 【转】关于Hibernate的unsaved-value 【转】IntelliJ IDEA使用技巧一览表 【转】maven2完全使用手册 【转】HSQLDB安装与使用 【转】response.setHeader参数、用法的介绍 - 方寸心间 - 博客园 Spring中使用proxool的配置+【转】proxool.xml配置属性说明 [Ubuntu][MySQL]修改MySQL编码 Linux下./configure错误详解 【转】CVS使用手册 [MySQL]用户密码管理 [MySQL]MySql-front连接LINUX平台的MySQL服务 [Ubuntu]Apt-get命令参数详解 sun jdk,Tomcat在Linux下的安装 [Gentoo]中文输入软件Scim的安装【转】 [Gentoo]系统时间调整【转】
[Ubuntu]下安装subversion
方寸心间 · 2008-10-11 · via 博客园 - 方寸心间

Ubuntu下安装subversion,这里总结一下安装过程:
首先要安装好apache2服务器,然后装subversion

·apache2是web服务器,用来通过web访问subversion
·subversion就是本文的主角

1.安装apache2

sudo apt-get install apache2


启动apache2

sudo /etc/init.d/apache2 start

注意: 如果有错误apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
解决办法:
编辑/etc/apache2/httpd.conf文件,加入:ServerName 127.0.0.1

打开浏览器输入http://localhost/如果页面显示It works!则apache2安装成功.

2.安装subversion

安装完apache2服务器后就开始安装subversion

sudo apt-get install subversion
sudo apt
-get install subversion-tools
sudo apt
-get install libapache2-svn


3.配置服务器

a.创建svn仓库
许多位置都可以放置 Subversion 文件仓库,其中两个最常用的是:/usr/local/svn 以及 /home/svn
我创建在/hom/svn:
创建目录

//创建库文件所在的目录
mkdir /home/svn/repository

创建Subversion库

//创建仓库
svnadmin create /home/svn/repository
cd 
/home/svn/repository
//看看是不是多了些文件,如果是则说明Subversion安装成功了
ls –l


b.配置apache2 
修改/etc/apache2/mods-available/dav_svn.conf, 将对应行改为:
     <Location /svn>
       DAV svn
       SVNPath  /home/svn/repository
       AuthType Basic
       AuthName “Subversion repository”
       AuthUserFile /etc/subversion/passwd
       <LimitExcept GET PROPFIND OPTIONS REPORT>
         Require valid-user
       </LimitExcept>
     </Location>
可选步骤:添加用户验证文件(添加后,cosmo使用Subversion就不用输入密码了):

sudo htpasswd -/etc/subversion/passwd cosmo

提示输入两次密码后成功.
创建用户:

sudo htpasswd /etc/subversion/passwd new_user

c.重启Apache2

sudo /etc/init.d/apache2 restart


安装到此结束

svn import -m “操作注释” /home/project http://localhost/svn/workspace

checkout http://localhost/svn/workspace 中的文件到/home/test

svn checkout http://localhost/svn/workspace /home/test