hg server in fedora 14

原创 2012年03月29日 14:11:03

 

1. Install vervices.

 

yum install mercurial

yum install hg

yum install httpd

yum install mod_wsgi.x86_64

 

2. modify http configuration. Add below lines to /etc/httpd/conf/httpd.conf.

             

####

Alias /hgrepos/ "/var/hg/repos/"

WSGIScriptAlias /hg "/var/hg/scripts/hgweb.wsgi"

<Directory "/var/hg/repos">

    Options FollowSymlinks

    DirectoryIndex index.html

    AllowOverride All

    Order allow,deny

    Allow from all

</Directory>

<Directory "/var/hg/scripts">

    Options ExecCGI FollowSymlinks

    AllowOverride All

    Order allow,deny

    Allow from all

</Directory>

<Location /hg>

    AuthType Basic

    AuthName "Mercurial repositories"

    AuthUserFile /var/hg/hgusers

    <LimitExcept GET>

        Require valid-user

    </LimitExcept>

</Location>

###

 

3.create directory.

 

3.1 hg directory

mkdir /var/hg

 

 3.2 scripts

  mkdir /var/hg/scripts

  change directory to /var/hg/scripts. Create hgweb.config and hgweb.wsgi 2 files.

 

In hgweb.config:

####

[collections]

/var/hg/repos = /var/hg/repos

 

[trusted]

users = *

 

[web]

allow_push = *

push_ssl = false

##### 

 

  In hgweb.wsgi.

#####

config = "/var/hg/scripts/hgweb.config"

import cgitb; cgitb.enable()

from mercurial.hgweb import hgweb

application = hgweb(config)

#####

 

3.2 create repos directory in /hg/var.

   mkdir /var/hg/repos

 

   create test directory for example:

   mkdir test directory in /var/hg/repos/test.

  

   Initialize test directory by below command:

      hg init /var/hg/repos/test

 

4. restart httpd service.

    service httpd restart

 

5. htpasswd -c /var/hg/hgusers USERNMAE

 

6. change dirctory mode:

      chmod –R 777 /var/hg

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Dependencies of EFL port of WebKit in Fedora 14 Linux

To build EFL port of WebKit in Fedora 14 Linux, based on http://trac.webkit.org/wiki/EFLWebKit, I li...

Docker实践2:用Docker搭建hg-server

如果有人已经将hg server的image做好了,那么我还要自己作吗?答案是拿来用吧。一、安装用hg为关键词搜索,得出以下结果:$ docker search hg NAME ...

ssh怎么连接fedora14

  • 2014-05-24 10:54
  • 40KB
  • 下载

vmware 安装 fedora14

  • 2014-05-24 10:56
  • 1022KB
  • 下载

嵌入式之Fedora14+Tiny6410上Qt4.7开发环境的搭建

我的Fedora14是自己安装的,安装的时候基本上把可选的安装包都安装了。 一,Linux上Qt开发环境的安装 1. 首先安装Fedora14上安装Qt Creator,需要的安装包为【qt-sd...
  • cghver
  • cghver
  • 2012-02-28 19:21
  • 2456

Fedora14安装Vmware Tools详细步骤 阐释(VMware版本为8.0,对比在ubuntu下安装vmware Tools的差异)

1,切换到root  用户 2,点击VMware的 VM选项,点settings,在hardware选项点CD/DVD,在USe  ISO image file里 选择vmware安装目录的,我的是...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)