当前位置:网站首页>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/repository
It 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 .
边栏推荐
- "Remake Apple product UI with Android" (3) - elegant statistical chart
- 请求头不同国家和语言的表示
- Pyinstaller is not an internal or external command, nor is it a runnable program or batch file
- 0214-27100 a day with little fluctuation
- Myopia: take off or match glasses? These problems must be understood clearly first
- [proteus simulation] 74hc595+74ls154 drive display 16x16 dot matrix
- Colab works with Google cloud disk
- Salary 3000, monthly income 40000 by "video editing": people who can make money never rely on hard work!
- 8个酷炫可视化图表,快速写出老板爱看的可视化分析报告
- uploads-labs靶场(附源码分析)(更新中)
猜你喜欢
How to thicken the brush in the graphical interface
[combinatorics] non descending path problem (outline of non descending path problem | basic model of non descending path problem | non descending path problem expansion model 1 non origin starting poi
0214-27100 a day with little fluctuation
Cocos Creator 2.x 自动打包(构建 + 编译)
The difference between calling by value and simulating calling by reference
“用Android复刻Apple产品UI”(2)——丝滑的AppStore卡片转场动画
Famous blackmail software stops operation and releases decryption keys. Most hospital IOT devices have security vulnerabilities | global network security hotspot on February 14
The accept attribute of the El upload upload component restricts the file type (detailed explanation of the case)
2022年Q2加密市场投融资报告:GameFi成为投资关键词
嵌入式开发:避免开源软件的7个理由
随机推荐
PHP二级域名session共享方案
[system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree
How to thicken the brush in the graphical interface
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (II)
"Remake Apple product UI with Android" (3) - elegant statistical chart
Mongodb installation and basic operation
8个酷炫可视化图表,快速写出老板爱看的可视化分析报告
Eleven requirements for test management post
Record windows10 installation tensorflow-gpu2.4.0
MongoDB 的安装和基本操作
Nifi from introduction to practice (nanny level tutorial) - flow
Go language self-study series | golang switch statement
Detailed explanation of four modes of distributed transaction (Seata)
Everyone in remote office works together to realize cooperative editing of materials and development of documents | community essay solicitation
Nine ways to define methods in scala- Nine ways to define a method in Scala?
[combinatorics] combinatorial identities (sum of variable terms 3 combinatorial identities | sum of variable terms 4 combinatorial identities | binomial theorem + derivation to prove combinatorial ide
《天天数学》连载56:二月二十五日
[proteus simulation] 8 × 8LED dot matrix screen imitates elevator digital scrolling display
“用Android复刻Apple产品UI”(2)——丝滑的AppStore卡片转场动画
PHP中register_globals参数设置