Welcome: Hunan Intelligent Applications Tecgnology CO.,ltd.-HNIAT.com
Language: Chinese ∷  English

Basic knowledge

SVN Solution-linux + windows

Linux:

Svn (subversion) is a recent version control tool, CVS-like contact person. Immediately, the majority of open source software used svn software version book management software. svn Service device Yes 2 types of server method: Independent service device Japanese borrowing apache etc. Web service device. Both types of methods have their advantages and disadvantages. svn Printed version Number of prints Setya Yes 2 types method: BDB sum FSFS. Cause BDB method When the service equipment is interrupted, the number of possible chains is set, and the reason is that the FSFS method is one point for further safety.

Main text SVN Independent service Instrumental security Japanese server layout:
1. Anthropomorphic (Yum under CentOS, immediate and expediently completed anthropomorphism)

# yum install subversion
Successful measurement

# svnserve --version svn serve --version
2. The erected version of the main building

# mkdir / svndata 创KEN svn number registration (recording possible self-establishment)
# svnadmin create / svndata / kuming kuming The original surname of the kuming version, can be changed!
3. Arrangement svn Arrangement sentence (Synchronous arrangement sentence for sequel management, this ri multi-individual adjustment)
   1) Main placement text: svnserve.conf main placement text for individual editions

# vim /svndata/kuming/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = / svndata / conf / passwd
authz-db = / svndata / conf / authz
realm = kuming
  2) Placement

# mkdir / svndata / conf
# vim / svndata / conf / passwd // User placement for svn
[users]
user1 = password1
user2 = password2
user3 = password3
user4 = password4
  3) Term of qualification

# vim / svndata / conf / authz // svn
 

Recovery fee
[groups] # setting group
group1 = user1, user2 #Multi-user comma

[/] #Root directory setting (Kuming "this individual sentence")
user3 = rw
user4 = r
user =

@ group1 = rw

[kuming: / 123] # “123” under the setting root directory
#Explanation “123” This individual matter This is the SVN service equipment placement Yoshiyuki, Jian Jian Ichi 刷 刷 High-level use 户 resident customer 户 舷 registration SVN
#Now, I'm sorry, I'm sorry, "123".
Recovery fee
4. Server service equipment

# svnserve -d -r / svndata
-d display or later daemon method (rear line)
-r / svndata Specified root directory / svndata


5. Related SVN server

#killall svnserve
6. 查 Nursing

# ps aux | grep svnserve 查 Nursing service, end: 3690
7. SVN client client method

TortoiseSVN, browser method: breakthrough version of the book browser import: svn: // ip-addr/kuming/

 

 

Attachment: Operation such as operation, heavy operation, stop, etc.

# vim svn
# chmod + x svn
Recovery fee
#! / bin / bash
case "$ 1" in
start)
        svnserve -d -r / svndata
        svnport = `netstat -natp | grep svnserve | awk -F:'{print $ 4}' | awk'NR == 1'`
        if [$ svnport -eq 3690]
        then
                echo "SVN Server Already Runnning. Port: 3690"
        else else
                echo "SVN Server Does Not Start"
        fi
;;
reload)
        svnport = `netstat -natp | grep svnserve | awk -F:'{print $ 4}' | awk'NR == 1'`
        if [$ svnport -eq 3690]
        then
                killall svnserve && svnserve -d -r / svndata
                echo "Reload OK"
        else else
                echo "SVN Server Is Not Running"
        fi
;;
stop)
        killall svnserve
        echo "SVN Server Has Been Stopped"
;;
status)
        svnport = `netstat -natp | grep svnserve | awk -F:'{print $ 4}' | awk'NR == 1'`
        pid = `ps aux | grep svnserve | grep -v" grep "| awk'{print $ 2}'`
        if [$ svnport -eq 3690]
        then
                echo "SVN Server (pid: $ pid) Authentic line ..."
        else else
                echo "SVN Server Stopping ..."
        fi
;;
*)
        echo "$ 0: Usage: $ 0 {start | status | stop | reload}"
        exit 1
;;
esac
Recovery fee

CONTACT US

Contact: Manager Xu

Phone: 13907330718

Tel: 0731-22222718

Email: hniatcom@163.com

Add: Room 603, 6th Floor, Shifting Room, No. 2, Orbit Zhigu, No. 79 Liancheng Road, Shifeng District, Zhuzhou City, Hunan Province

Scan the qr codeClose
the qr code