简体   繁体   English

汞汞多个接口

[英]hg mercurial multiple interfaces

Can hg mercurial server be cloned by multiple interfaces? hg mercurial服务器可以通过多个接口克隆吗?

Be cloned, for example, by users from different subnetworks on eth0 (194.169.1.x) and also the other subnetwork from eth1 (193.168.1.x). 例如,被来自eth0(194.169.1.x)上不同子网的用户以及来自eth1(193.168.1.x)另一个子网的用户克隆。

I tried setting the hgrc file (address = eth1_IP), but it did not work. 我尝试设置hgrc文件(地址= eth1_IP),但是没有用。

By the way, my server is Ubuntu 12.04. 顺便说一句,我的服务器是Ubuntu 12.04。

By default (without defining address in \\[web\\] section in .hgrc) or using -a ADDRESS option in hg serve command, hg serve listed on all detected local interfaces 默认情况下(在.hgrc的\\[web\\]部分中未定义address )或在hg serve命令中使用-a ADDRESS选项,hg serve在所有检测到的本地接口上列出

>hg serve
listening at http://tower:8000/ (bound to *:8000)

>netstat -nao

Active Connections

  Proto  Local Address          Foreign Address        State           PID
...
  TCP    0.0.0.0:8000           0.0.0.0:0              LISTENING       2496
...

(I'm too lazy show successful clone from my both interfaces) (我太懒了,无法从两个界面上成功克隆)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM