CentOS中怎么安装Websvn

发布时间:2021-07-12 15:24:50 作者:Leah
来源:亿速云 阅读:206

本篇文章为大家展示了CentOS中怎么安装Websvn,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

1. 下载 WebSVN

首先进入 /var/www/html/ 并在这里下载安装包。

   

代码如下:

$ sudo -s

请在shell或者终端中执行上面的命令,因为我们需要切换到root权限来对系统限制区域有访问权。

   

代码如下:

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


CentOS中怎么安装Websvn

这里,我下载的是最新的2.3.3版本的 websvn。你可以从上面这个网站找到下载链接,用适合你的包的链接来替换上面的链接。
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配置

现在,我们需要拷贝位于 /var/www/html/websvn/include 的 distconfig.php 为 config.php,并且接着编辑该配置文件。

   

代码如下:

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

现在我们需要按如下改变文件。完成之后,请保存并退出。

   

代码如下:

// 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. 启动 WebSVN

现在,我们将近完成了。现在需要重启Apache服务。你可以用下面的命令。

   

代码如下:

# systemctl restart httpd.service

接着我们在浏览器中打开WebSVN,输入 http:// IP地址/websvn ,或者你在本地的话,你可以输入 http://localhost/websvn 。
CentOS中怎么安装Websvn

上述内容就是CentOS中怎么安装Websvn,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. Centos中怎么安装MongoDB
  2. CentOS中怎样安装MySQL

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

centos websvn

上一篇:Linux用户进程是怎么释放内存的

下一篇:CentOS系统中怎么安装Telnet

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》