溫馨提示×

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

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

CentOS中怎么安裝Websvn

發(fā)布時(shí)間:2021-07-12 15:24:50 來(lái)源:億速云 閱讀:208 作者:Leah 欄目:系統(tǒng)運(yùn)維

本篇文章為大家展示了CentOS中怎么安裝Websvn,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。

1. 下載 WebSVN

首先進(jìn)入 /var/www/html/ 并在這里下載安裝包。

   

代碼如下:

$ sudo -s

請(qǐng)?jiān)趕hell或者終端中執(zhí)行上面的命令,因?yàn)槲覀冃枰袚Q到root權(quán)限來(lái)對(duì)系統(tǒng)限制區(qū)域有訪問(wèn)權(quán)。

   

代碼如下:

# cd /var/www/html
   # wget http://websvn.tigris.org/files/documents/1380/49057/websvn-2.3.3.zip


CentOS中怎么安裝Websvn

這里,我下載的是最新的2.3.3版本的 websvn。你可以從上面這個(gè)網(wǎng)站找到下載鏈接,用適合你的包的鏈接來(lái)替換上面的鏈接。
2. 解壓下載的zip

   

代碼如下:

# unzip websvn-2.3.3.zip
   # mv websvn-2.3.3 websvn


   CentOS中怎么安裝Websvn

    3. 安裝php

   

代碼如下:

# yum install php


CentOS中怎么安裝Websvn

    4. 編輯WebSVN配置

現(xiàn)在,我們需要拷貝位于 /var/www/html/websvn/include 的 distconfig.php 為 config.php,并且接著編輯該配置文件。

   

代碼如下:

# cd /var/www/html/websvn/include
   # cp distconfig.php config.php
   # nano config.php

現(xiàn)在我們需要按如下改變文件。完成之后,請(qǐng)保存并退出。

   

代碼如下:

// Configure these lines if your commands aren't on your path.
   //
    $config->setSVNCommandPath('/usr/bin'); // e.g. c:\\program files\\subversion\\bin
    $config->setDiffPath('/usr/bin');
   // For syntax colouring, if option enabled...
    $config->setEnscriptPath('/usr/bin');
    $config->setSedPath('/bin');
   // For delivered tarballs, if option enabled...
    $config->setTarPath('/bin');
   // For delivered GZIP'd files and tarballs, if option enabled...
    $config->setGZipPath('/bin');
   //
    $config->parentPath('/svn/');
   $extEnscript[".pl"] = "perl";
   $extEnscript[".py"] = "python";
   $extEnscript[".sql"] = "sql";
   $extEnscript[".java"] = "java";
   $extEnscript[".html"] = "html";
   $extEnscript[".xml"] = "html";
   $extEnscript[".thtml"] = "html";
   $extEnscript[".tpl"] = "html";
   $extEnscript[".sh"] = "bash";


 CentOS中怎么安裝Websvn

    5. 啟動(dòng) WebSVN

現(xiàn)在,我們將近完成了?,F(xiàn)在需要重啟Apache服務(wù)。你可以用下面的命令。

   

代碼如下:

# systemctl restart httpd.service

接著我們?cè)跒g覽器中打開(kāi)WebSVN,輸入 http:// IP地址/websvn ,或者你在本地的話,你可以輸入 http://localhost/websvn 。
CentOS中怎么安裝Websvn

上述內(nèi)容就是CentOS中怎么安裝Websvn,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI