学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年11月10日

摘要: 在使用ngnix+Git搭建http访问Git的环境的时候出现404 not find error,究其原因是因为创建Git Repository的时候忘记执行git update-server-info 命令,导致使用http或者https访问Git Resository的时候找不到文件。解决方法如下:(1)进入Git Repository [root@GJZ git]# cd test.git/(2)执行 update-server-info 命令 [root@GJZ test.git]# git update-server-info详细点儿的解释请参阅:http://stackove.. 阅读全文
posted @ 2011-11-10 18:14 Jerry.Kwan 阅读(606) 评论(0) 推荐(0) 编辑

摘要: 在搭建git的时候又碰到了这一问题,9418端口已经处于listerning状态,但外部就是无法链接,防火墙关闭都不行。在CentOS5.5上基本没有这一问题,但升级到CentOS5.6的时候就碰到了这样的问题,究其原因就是在iptables中被禁止accpet连接了。解决方法很简单:(1)iptables -A INPUT -p tcp --dport 9418 -j ACCEPT(2)service iptables save 阅读全文
posted @ 2011-11-10 11:27 Jerry.Kwan 阅读(336) 评论(0) 推荐(0) 编辑