linux 修改 ssh 的端口号,启动hg服务

  • 修改 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
~/.hgrc 的内容
[web]
push_ssl = False
allow_push = *

[ui]
username = YOUR_NAME



 
原文地址:https://www.cnblogs.com/caoyang/p/32450189dcf01b816cfb7206128b37a3.html