- 修改 ssh 的端口号
# vim /etc/ssh/sshd_config
将其中的 Port 改为 想要修改的端口号。
# service sshd restart
- 启动hg服务
# hg serve --port PORT_NUM --web-conf hg.conf_FULL_PATH -d
hg.conf_FULL_PATH 的内容
[paths]
/your_hg_repo = /home/user_name/hgRepo/your_hg_repo
/your_hg_repo = /home/user_name/hgRepo/your_hg_repo
~/.hgrc 的内容
[web]
push_ssl = False
allow_push = *
[ui]
username = YOUR_NAME
push_ssl = False
allow_push = *
[ui]
username = YOUR_NAME