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

时间:2014-09-19 10:05:55   收藏:0   阅读:261
  • 修改 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



 
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!