91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

在CentOS6.7安裝SVN和SVN鉤子

發布時間:2020-07-30 23:35:20 來源:網絡 閱讀:1056 作者:約珥 欄目:開發技術

系統和版本:CentOS6.7+SVN1.6.11


Step 1: 安裝Subversion

[root@80 ~]# yum install subversion


Step 2: 檢查版本

[root@80 ~]# svn --version


Step 3: 創建SVN目錄和倉庫

[root@80 svn]# mkdir /opt/svn

[root@80 svn]# svnadmin create /opt/svn/test.localhost.com


Step 4: 添加用戶和權限

[root@80 repos]# vim /opt/svn/test.localhost.com/conf/passwd

[users]

# harry = harryssecret

# sally = sallyssecret

jasonwu = jasonwupw

alanzhang = alanzhangpw

sky = skypw

joel = joelpw


[root@80 repos]# vim /opt/svn/test.localhost.com/conf/authz 

[groups]

DEV  = joel,sky,alanzhang,jasonwu

[v2.test.localhost.com:/]

@DEV = rw

* =


Step 5: 修改配置文件

[root@80 repos]# vim /opt/svn/test.localhost.com/conf/svnserve.conf 

anon-access = none

auth-access = write

password-db = /opt/svn/test.localhost.com/conf/passwd

authz-db = /opt/svn/test.localhost.com/conf/authz

realm = My First Repository


Step 6: 開啟svn服務

[root@80 test.localhost.com]# svnserve -d -r /opt/svn


Step 7: checkout副本

[root@80 www]# svn co svn://192.168.11.80/test.localhost.com


Authentication realm: <svn://192.168.11.80:3690> My First Repository

Password for 'joel': 

Authentication realm: <svn://192.168.11.80:3690> My First Repository

Username: joel

Password for 'joel': 

Authentication realm: <svn://192.168.11.80:3690> My First Repository

Username: sky

Password for 'sky': 


-----------------------------------------------------------------------

ATTENTION!  Your password for authentication realm:


   <svn://192.168.11.80:3690> My First Repository


can only be stored to disk unencrypted!  You are advised to configure

your system so that Subversion can store passwords encrypted, if

possible.  See the documentation for details.


You can avoid future appearances of this warning by setting the value

of the 'store-plaintext-passwords' option to either 'yes' or 'no' in

'/root/.subversion/servers'.

-----------------------------------------------------------------------

Store password unencrypted (yes/no)? 


Step 8: 增加文件到SVN

[root@80 test.localhost.com]# vim test.txt

[root@80 test.localhost.com]# svn add *

A         test.txt


Step 9: 提交文件到SVN

[root@80 test.localhost.com]# svn commit * -m 'test'

Adding         test.txt

Transmitting file data .

Committed revision 1.


Step 10: 修改鉤子

[root@80 www]# cd /opt/svn/test.localhost.com/

[root@80 test.localhost.com]# cd hooks/

[root@80 hooks]# vim post-commit 

#!/bin/sh

#export LANG=zh_CN.UTF-8


SVN=/usr/bin/svn

WEB=/www/test.localhost.com


$SVN update $WEB  --username sky --password sky


[root@80 hooks]# chmod -R 755 post-commit

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

师宗县| 常熟市| 宜章县| 和林格尔县| 上杭县| 蓝山县| 吴江市| 贡觉县| 蒲城县| 富民县| 莱阳市| 彰化市| 灌阳县| 昌邑市| 呼图壁县| 且末县| 镇康县| 东海县| 封开县| 五家渠市| 长乐市| 溆浦县| 芦溪县| 绵竹市| 陈巴尔虎旗| 大英县| 桂东县| 滁州市| 西峡县| 莱州市| 临安市| 平谷区| 顺昌县| 英山县| 自贡市| 武穴市| 萝北县| 桐庐县| 昔阳县| 金华市| 郧西县|