国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

linux下安裝svn(subversion)

2019-11-06 06:12:47
字體:
來源:轉載
供稿:網友

安裝subversion需要依賴aPR、apr-util、sqlite,下載安裝包,放在/usr/file目錄

subversion-1.9.4.tar.gzapr-1.5.2.tar.gzapr-util-1.5.4.tar.gzsqlite-amalgamation-3150100.zip

解壓

cd /usr/file  tar xvf subversion-1.9.4.tar.gztar xvf apr-1.5.2.tar.gztar xvf apr-util-1.5.4.tar.gzunzip sqlite-amalgamation-3150100.zip安裝apr
cd apr-1.5.2.configure --prefix=usr/local/aprmake && make install

安裝apr-util

cd ../apr-util-1.5.4./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/aprmake && make install配置sqlite
cd ../mv sqlite-amalgamation-3150100 ./subversion-1.9.4/sqlite-amalgamation安裝subversion
cd subversion-1.9.4./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-utilmake && make install配置環境變量
vi /etc/profile追加以下內容
#subversionexport PATH=$PATH:/usr/local/subversion/bin使配置立即生效,并檢查安裝結果
source /etc/profilesvnserve -version

配置倉庫

倉庫路徑/usr/svn/repo

mkdir -p /usr/svn/reposvnadmin create /usr/svn/repo倉庫目錄下會生成文件和目錄,編輯
cd /usr/svn/repo/confvi svnserve.conf去掉以下幾行的注釋并修改,注意,行前一定不要留空格
anon-access = noneauth-access = writepassWord-db = passwdauthz-db = authzrealm = repo編輯passwd文件
vi passwd添加(用戶=密碼)
[users]root = root編輯authz文件
vi authz設置權限
[groups]admin = root[/]@admin = rw

配置服務

接下來將subversion配置成系統服務

啟動subversion

svnserve -d --listen-port 9999 -r /usr/svn在/etc/init.d目錄創建文件(無后綴)
cd /etc/init.dvi svn添加如下內容
#!/bin/bash#chkconfig: 2345 90 10##subversion# build this file in /etc/init.d/svn# chmod 755 /etc/init.d/svn#SVN_HOME=/usr/svnif [ ! -f "/usr/local/subversion/bin/svnserve" ]then    echo "svnserver startup: cannot start"    exitficase "$1" in    start)        echo "Starting svnserve..."        /usr/local/subversion/bin/svnserve -d --listen-port 9999 -r $SVN_HOME        echo "started!"        ;;    stop)        echo "Stoping svnserve..."        killall svnserve        echo "stopped!"        ;;    restart)        $0 stop        $0 start        ;;    *)        echo "Usage: svn { start | stop | restart } "        exit 1esac設置開機啟動
chmod 755 /etc/init.d/svnchkconfig svn onsvn啟動、關閉命令
service svn startservice svn stopservice svn restart

常見問題

windows安裝tortoiseSVN客戶端軟件,checkout svn://192.168.25.130:9999/repo

如果遇到問題一

Unable to connect to a repository at URL

解決方法:右鍵“TortoiseSVN”--“Settings”--“Saved Data”,依次“Clear”所有項,重新“checkout”

如果遇到問題二:

line 19: Option expected解決方法:修改subversion配置文件,去掉配置項行前空格
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 乐安县| 秦皇岛市| 正阳县| 洛扎县| 贵州省| 陵川县| 包头市| 辉南县| 弥勒县| 图木舒克市| 耒阳市| 武邑县| 徐汇区| 礼泉县| 洛南县| 济源市| 青岛市| 锡林郭勒盟| 抚松县| 吴桥县| 米林县| 上杭县| 攀枝花市| 普兰店市| 北安市| 丹江口市| 金昌市| 梁平县| 垫江县| 肇庆市| 汝城县| 蒲城县| 乐安县| 桐乡市| 石城县| 辽阳县| 吴堡县| 阿城市| 上蔡县| 临沧市| 博湖县|