當(dāng)前位置:
首頁 >
Redhat 6 git 服务器配置(gitweb)
發(fā)布時間:2025/3/17
49
豆豆
生活随笔
收集整理的這篇文章主要介紹了
Redhat 6 git 服务器配置(gitweb)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Redhat 6 git 服務(wù)器配置(gitweb)
gitweb主要用于web browser方式的源代碼瀏覽
1.gitweb軟件安裝 軟件倉庫見?redhat 6 git 服務(wù)器 配置 (http) 2.配置http 服務(wù)器 編輯/etc/httpd/git.conf 追加 Alias /gitweb /var/www/gitweb<Directory /var/www/gitweb>Options ExecCGIAddHandler cgi-script cgiDirectoryIndex gitweb.cgi </Directory> 3.準(zhǔn)備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服務(wù)器 service httpd restart ? 就可以從下述地址訪問了 http://servername/gitweb 備注: 如果想要在一臺服務(wù)器上顯示兩組不同的gitweb服務(wù) 如android和tizen的代碼同時管理 主要按照同樣的方法,使用不同的目錄即可?
posted on 2013-03-14 21:55 secularbird 閱讀(...) 評論(...) 編輯 收藏轉(zhuǎn)載于:https://www.cnblogs.com/zelos/archive/2013/03/14/2960429.html
總結(jié)
以上是生活随笔為你收集整理的Redhat 6 git 服务器配置(gitweb)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android情人节短信祝福源码
- 下一篇: POJ 1325 Machine Sch