欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Redhat 6 git 服务器配置(gitweb)

发布时间:2025/3/17 编程问答 52 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Redhat 6 git 服务器配置(gitweb) 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
Redhat 6 git 服务器配置(gitweb)

gitweb主要用于web browser方式的源代码浏览

1.gitweb软件安装 软件仓库见 redhat 6 git 服务器 配置 (http) 2.配置http 服务器 编辑/etc/httpd/git.conf 追加 Alias /gitweb /var/www/gitweb<Directory /var/www/gitweb>Options ExecCGIAddHandler cgi-script cgiDirectoryIndex gitweb.cgi </Directory> 3.准备gitweb.cgi脚本和资源 cp -r /usr/share/gitweb /var/www/ 4.添加project root cp /etc/gitweb.conf /var/www/gitweb.conf 更改 之前的gitweb.cgi脚本,找到gitweb.conf 所在的一行 把/etc/gitweb.conf更改为 /var/www/gitweb.conf 编辑 /var/www/gitweb.conf 去掉下面our $projectroot的注释,改成自己的git仓库的父目录, 这里为 /var/www/git our $projectroot = "/var/www/git";   5.重启apache服务器 service httpd restart   就可以从下述地址访问了 http://servername/gitweb 备注: 如果想要在一台服务器上显示两组不同的gitweb服务 如android和tizen的代码同时管理 主要按照同样的方法,使用不同的目录即可

 

posted on 2013-03-14 21:55 secularbird 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/zelos/archive/2013/03/14/2960429.html

总结

以上是生活随笔为你收集整理的Redhat 6 git 服务器配置(gitweb)的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。