1, the first preparation of software tools, Ubuntu installation software that is quite convenient ah
sudo apt-get install subversion
2. Create Warehouse folder:
Cd/home
sudo mkdir svn
/usr/local/svn# sudo chown-r 777 svn
/usr/local/svn# sudo chmod-r 777 svn
The last command gives the group members the appropriate permissions for all files that are newly added to the file warehouse.
Should be to add the appropriate group permissions, but since it is the simplest way, it omitted that point, hehe
3. Create Warehouse
sudo svnadmin create/home/svn
Modify the conf/svnserve.conf file under SVN
Get rid of #[general] The # number in front
[General]
#匿名访问的权限, can be read,write,none, default to read
Anon-access = None
#认证用户的权限, can be read,write,none, default to write
auth-access = Write
#密码数据库的路径, get rid of the front #
Password-db = passwd
Modify configuration file passwd
If modified into
[Users]
Flyli = 123456
Then start the SVN service
Svnserve-d-R/HOME/SVN
4, the final introduction of SVN project
SVN import-m "New import"/home/test svn://localhost/svn
So the items under the/home/test folder are imported into SVN, and the-m argument means that the message is what you see when you look at SVN log in the future.
And then we'll test it.
sudo mkdir/home/svn_down
Cd/home/svn_down
sudo svn co svn://localhost/svn
See if the files in SVN have been downloaded?