ubuntu 搭建Mercurial 服务(nginx)

本文详细介绍如何在Ubuntu 12.05上部署Mercurial版本控制系统,并使用nginx作为前端代理服务器。主要内容包括安装nginx和Mercurial、创建版本库目录、配置Mercurial服务及nginx等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ubuntu 搭建Mercurial 服务(nginx)

环境:ubuntu 12.05  Mercurial
步骤:
(1)安装nginx 和 Mercurial: sudo apt-get install nginx mercurial
(2)新建仓库目录:sudo mkdir /home/www      sudo chmod -R 777 www     mkdir hg;
(3)新建配置文件:用每个项目hgrc或者新建一个hgweb.config文件,内容如下:
[web]
push_ssl = false
allow_push = *
encoding = "UTF-8"
[paths]
/hg = /home/www/hg
(4)重启hg serve: hg serve 或 hg serve -d -a localhost --webdir-conf hgweb.config
(5)配置nginx:
server {
  listen 80 default_server;
  server_name hg.pengcz.com;
  location / {
    proxy_pass http://localhost:8000;
  }
} 可能出现的问题:no username supplied (see
"hg help config") 解决:vi ./hg/hgrc [ui] username = daxia<daxia@pengcz.com>

 

posted on 2016-07-06 14:16 咸鱼韭菜 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/pengcz/p/5646744.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值