1. 程式人生 > >Centos/ubuntu配置SVN服務

Centos/ubuntu配置SVN服務

[email protected]:~# mkdir -p /svn/svn1
[email protected]:~# svnadmin create /svn/svn1/
[email protected]:~# cd /svn/svn1/conf/
[email protected]:/svn/svn1/conf# ls
authz passwd svnserve.conf
[email protected]:/svn/svn1/conf# vim passwd     編輯passwd,在【users】下新增使用者名稱和密碼

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
Test = 123456

[email protected]
:/svn/svn1/conf# vim authz [aliases] #別名,一般不做配置 # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry,sally 釋:使用者組為harry_and_sally,組內有harry和sally使用者 # harry_sally_and_joe = harry,sally,&joe # [/foo/bar] 表示/foo/bar下的所有資源 # harry = rw harry 擁有讀寫許可權 # &joe = r # * = 設定其他使用者具有的許可權 # [repository:/baz/fuz] 表示repository下的/baz/fuz下的所有資源 # @harry_and_sally = rw 設定harry_and_sally使用者組為讀寫許可權 # * = r [svn1:/] 表示svn1下的所有資源 Test = rw 使用者Test 許可權為讀寫
[email protected]
:/svn/svn1/conf# vim svnserve.conf [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none #匿名訪問的許可權,可以是read,write,none,預設為read auth-access = write #使授權使用者有寫的許可權 ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd #密碼資料庫的路徑 ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the the ### directory containing this file. If you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz #訪問控制檔案 ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. realm = SVN1 #認證空間名,SVN會在認證提示裡顯示,並且作為憑證快取的關鍵字 [sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. Default is false. ### This section will be ignored if svnserve is not built with Cyrus ### SASL support; to check, run 'svnserve --version' and look for a line ### reading 'Cyrus SASL authentication is available.' # use-sasl = true 開啟sasl使用者驗證 ### These options specify the desired strength of the security layer ### that you want SASL to provide. 0 means no encryption, 1 means ### integrity-checking only, values larger than 1 are correlated ### to the effective key length for encryption (e.g. 128 means 128-bit ### encryption). The values below are the defaults. # min-encryption = 0 # max-encryption = 256

相關推薦

Centos/ubuntu配置SVN服務

[email protected]:~# mkdir -p /svn/svn1 [email protected]:~# svnadmin create /svn/svn1/ [email protected]:~# cd /svn/svn1/conf/ [email&

CentOS 7下搭建配置SVN服務

col 目錄 賬號密碼 .cn .html 亂碼 錯誤 dmi cal 原文鏈接:https://www.cnblogs.com/tdalcn/p/6937714.html 同步:http://blog.csdn.net/u011884440/article/details

Ubuntu 搭建svn服務器 ,以及常見錯誤解決方案

mkdir creat mod 服務 csdn 解決 details 守護 center 一、安裝命令: 1)以root身份登錄。執行:sudo su -命令 2)執行安裝命令:apt-get install subversion 二、創建項目目錄 1)mkdir /

ubuntuSVN 服務器搭建及使用

root version use packages ups mar 運行 登錄 file 1.安裝Subversion ServerSubversion server binaries maintained by the Ubuntu Project. Packages i

ubuntu搭建SVN服務

svn服務器搭建 ubuntu 安裝軟件包如果沒有安裝subversion軟件包,需使用命令sudo apt-get install subversion來安裝軟件包!選擇文件位置安裝上軟件包後需要選擇SVN服務文件以及配置文件位置。下面以目錄 /home/ svn/為例!創建版本倉庫進到目錄cd /

ubuntu 配置 rabbitmq 服務

pda plugins get -o 頁面管理 png main www. source 1.首先,添加相應的源 在 Ubuntu 16.04 下 echo "deb https://dl.bintray.com/rabbitmq/debian xenial main"

CentOS7 配置SVN服務

圖片 swd targe target 服務 jin 分享圖片 svn服務器 信息 也可以參考這裏:https://jingyan.baidu.com/article/148a1921d84be34d71c3b18f.html 1、安裝svn yum install

centos配置gitosis服務器遇到的困難

修改 TP alt image roo 初始 根據 權限修改 配置 這篇博客主要講的是在centos下配置gitosis遇到的問題。 1、困難1:gitosis沒有安裝成功,沒有出現finish的字樣,但是沒有發現,導致在用公鑰初始化配置倉庫時,出現了找不到gitosis的

Ubuntu 配置ISCSI服務

class ucc scsi 配置 modules removing ota star 兩個 摘要:sudo apt-get install iscsitarget立刻搞定, 然後編輯配置文件:sudovim/etc/ietd.conf默認的配置文件, 有詳細的配置說明和

CentOS下安裝SVN服務

auth 帳號 tortoise reat 空間 密碼文件 version 版本 rto ---恢復內容開始--- 1.使用yum安裝 yum install subversion 2.創建倉庫 1.創建成功後在svn下面多了幾個文件夾。 cd /home mkdir

CentOS 創建SVN 服務器,並且自動同步到WEB 目錄

auth 修改 重啟 讀寫權限 swd 初始化 realm 密碼 arr 一、安裝Subversion #yum install subversion 二,基本的SVN服務器配置 1,新建一個目錄用於存儲SVN所有文件# mkdir /home/svn 2,新建一個

Centos配置DNS服務

DNS(Domain Name System域名系統) 是一種基於分散式的資料庫系統,並採用C/S模式進行主機域名與IP地址之間的轉換 環境: centos系統主機一臺  IP地址:192.168.220.137 DNS軟體包bind 步驟一: 檢視是否安裝DNS軟

ubuntu 配置 tftp 服務

行修改 color you src hide 權限 基於 這也 config 一. 安裝 tftp   1.1. 安裝 tftp 所需的軟件。     a. 安裝 tftp-hpa,tftpd-hpa,前者是客戶端,後者是服務程序, 在終端下輸入 sudo apt-get

centos 7 安裝svn 服務

CentOS 7下搭建配置SVN伺服器 1. 安裝 CentOS通過yum安裝subversion。 $ sudo yum install subversion  subversion安裝在/bin目錄: $ which svnserve /bin/svnserve 檢查一下subversion是否

windows 2003配置svn服務

第一步 下載 去svn官網下載一個最新版的svn 該連結會跳轉到 進行下載 第二步 安裝 雙擊剛才下載的Setup-Subversion-1.8.15.msi 然後一直Next 安裝完成之後就會發現我們的PATH環境變數中多了一個C:\Program Files\Tortoise

阿里雲主機新增安全組規則配置svn服務

本頁目錄 您可以新增安全組規則,允許或禁止安全組內的ECS例項對公網或私網的訪問: VPC網路:只需要設定出方向或入方向的規則,不區分內網和公網。專有網路(VPC)例項的公網訪問通過私網網絡卡對映完成,所以,您在例項內部看不到公網網絡卡,在安全組裡也只能設定內網規則。您設

win10 配置svn服務

使用管理員許可權開啟dos視窗,然後輸入: sc create SVN-Service binpath="C:\CommonTools\svn\bin\svnserve.exe --service

Linux系統CentOS 7配置httpd服務

在阿里雲上購買了一臺雲伺服器(CentOS7系統),現在我對配置httpd服務進行描述,如有疏漏敬請指出1、登入阿里雲伺服器2、安裝httpd服務執行指令:yum -y install httpd3、啟動apache伺服器 systemctl start httpd     

Ubuntu 配置svn鉤子

rev repos change 找到 mit 文件 pos auth gef 在svn版本庫找到 hooks文件夾 mv post-commit.tmpl post-commit #!/bin/sh export LANG=en_US.UTF-8 REPOS="$1"

Centos7安裝、配置SVN服務,並設定開機自啟動

檢視啟動情況: 二、設定SVN開機自啟動 1、subversion預設以/var/svn作為資料根目錄,可以通過/etc/sysconfig/svnserve修改這個預設位置。 systemctl cat svnserve.service #svnserve.service檔案