当前位置:网站首页>How to set up SVN server on this machine
How to set up SVN server on this machine
2022-07-03 16:21:00 【Brother Xing plays with the clouds】
Purpose : In the absence of a formal SVN The server Under the circumstances , Complete the local backup of the code .
download :
http://subversion.tigris.org/
http://subversion.apache.org/
http://www.visualsvn.com/server/download/
Apache download :httpd.apache.org/download.cgi
SVN download :subversion.tigris.org/servlets/ProjectDocumentList
Tortoise download :prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.3.2.5840-svn-1.3.0.msi
Tortoise Chinese simplified language pack download : stay prdownloads.sourceforge.net/tortoisesvn/LanguagePack_1.3.2_zh_CN.exe
Windows Next SVN The server Build and use graphic tutorials http://www.linuxidc.com/Linux/2013-03/81665.htm
Reference resources :
1, Software download
download Subversion The server Program .
Download the binary installation file from the official website , Go to the binary package download section , find Windows NT, 2000, XP and 2003 part , And then choose " this directory ", In this way, we can see a lot of downloaded content , Now you can download svn-1.4.0-setup.exe .
download Subversion Of Windows client TortoiseSVN.
TortoiseSVN It 's an extension Windows Shell A set of tools for , Can be seen as Windows Plug in of resource manager , After installation Windows You can identify Subversion Working directory of . The official website is TortoiseSVN , The download method is the same as the previous svn The server similar , stay Download We can choose the download version of the page , The current installation file of the most stable version is TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi.
2, The server And client installation
Server installation , Direct operation svn-1.4.0-setup.exe , Follow the instructions to install , In this way, we have an environment in which the server can run .
install TortoiseSVN, Also run directly TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi Follow the instructions to install , However, you will be prompted whether to restart after the final completion , Actually, restarting just makes svn Working copy in windows The special style in takes effect , It has nothing to do with all the actual functions , Here, in order to see the good effect immediately , Or restart the machine .
3, Build version Library (Repository)
function Subversion The server needs to set up a version library first (Repository), It can be regarded as the database storing data on the server , Installed on Subversion After the server , It can run directly , Such as :
svnadmin create E:/svndemo/repositoryIt will be in the directory E:/svndemo/repository Next, create a version Library .
We can also use TortoiseSVN Do this graphically : In the catalog E:/svndemo/repository Next " Right click ->TortoiseSVN->Create Repository here...“, Then you can choose the repository mode , Use default here , Then you create a series of directories and files .
4, Configure users and permissions
Came to E:/svndemo/repository/conf Catalog , modify svnserve.conf: # [general] # password-db = passwd Change it to : [general] password-db = passwd And then modify the passwd file , Remove the comments in the following three lines : # [users] # harry = harryssecret # sally = sallyssecret Finally become : [users] harry = harryssecret sally = sallyssecret
ad locum , Because generally speaking , Project svn The user name and password of are uniformly authenticated , In order not to enter the password every time , So it's using TortoiseSVN When , Directly remember the password , The user name and password here should be consistent with the project , To avoid accidents .
5, Run a stand-alone server
Run in any directory : svnserve -d -r E:/svndemo/repository Our server program has been started . Be careful not to close the command line window , Closing the window will also svnserve stop it .
Found in use , Even if this window is closed ,svn As good as ~~ I don't know why ~
6, Initialize import
Go to the root directory of the project we want to import , In this case is E:/svndemo/initproject, There is a readme.txt file :
Right click ->TortoiseSVN->Import... URL of repository Input “svn://localhost/” ok There is no change in the directory after completion , If no error is reported , The data has been imported into the version library we just defined .
It should be noted that , This step can be completely installed on another machine TortoiseSVN On the host . For example, running svnserve The host of IP yes 133.96.121.22, be URL Part of the input is “svn://133.96.121.22/”.
ad locum , do not know why , Use svn://localhost/ I can't make up my mind , Finally, an idea came to use file:///E:/svndemo/repository/ Instead, it's done ~~
7, Basic client operation
Take the repository to a working copy : Go to any empty directory , In this case, it's E:/svndemo/wc1, Right click to run ->Checkout, stay URL of repository Input in svn://localhost/, So we get a copy of the job . Make changes in working copy and submit : open readme.txt, Make changes , And then right-click ->Commit..., So we submit the changes to the repository , We can run .
Look at the changes made : readme.txt Right click ->TortoiseSVN->Show Log, So we can see all our submissions to this document . In version 1 Right click ->Compare with working copy, We can compare files and versions of working copies 1 The difference between .
边栏推荐
- TCP congestion control details | 3 design space
- Nine ways to define methods in scala- Nine ways to define a method in Scala?
- Why can't strings be directly compared with equals; Why can't some integers be directly compared with the equal sign
- Mysql 将逗号隔开的属性字段数据由列转行
- Eleven requirements for test management post
- ThreeJS 第二篇:顶点概念、几何体结构
- Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (II)
- 用同花顺炒股开户安全吗?
- 请求头不同国家和语言的表示
- Everyone in remote office works together to realize cooperative editing of materials and development of documents | community essay solicitation
猜你喜欢

8 cool visual charts to quickly write the visual analysis report that the boss likes to see

Redis installation under windows and Linux systems

"Remake Apple product UI with Android" (3) - elegant statistical chart

Basis of target detection (IOU)

QT串口ui设计和解决显示中文乱码

“用Android复刻Apple产品UI”(3)—优雅的数据统计图表

Uploads labs range (with source code analysis) (under update)

uploads-labs靶场(附源码分析)(更新中)

Cocos Creator 2.x 自动打包(构建 + 编译)

First knowledge of database
随机推荐
"Everyday Mathematics" serial 56: February 25
From "zero sum game" to "positive sum game", PAAS triggered the third wave of cloud computing
pyinstaller不是内部或外部命令,也不是可运行的程序 或批处理文件
Project -- high concurrency memory pool
Detailed explanation of four modes of distributed transaction (Seata)
Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
Why does the std:: string operation perform poorly- Why do std::string operations perform poorly?
2022年Q2加密市场投融资报告:GameFi成为投资关键词
Eleven requirements for test management post
架构实战营 - 第 6 期 毕业总结
Chinese translation of Tagore's floating birds (1~10)
特征多项式与常系数齐次线性递推
在ntpdate同步时间的时候出现“the NTP socket is in use, exiting”
【声明】关于检索SogK1997而找到诸多网页爬虫结果这件事
Mysql 将逗号隔开的属性字段数据由列转行
【LeetCode】94. Middle order traversal of binary tree
App mobile terminal test [4] APK operation
Hibernate的缓存机制/会话级缓存机制
高等数学(第七版)同济大学 习题2-1 个人解答
Extraction of the same pointcut