gpt4 book ai didi

git - 您将如何在共享主机中安装 Gitweb?

转载 作者:太空狗 更新时间:2023-10-29 14:40:47 25 4
gpt4 key购买 nike

我最近在我的共享主机上安装了我的 git 现在我想安装 gitweb 但我不知道如何安装和配置它。

有没有安装gitweb的过程可以分享一下?

最佳答案

gitweb section of the git repo确实包含详细的 installation instructions .

仅引用第一部分:

GIT 网络界面(gitweb)安装

First you have to generate gitweb.cgi from gitweb.perl using "make gitweb", then "make install-gitweb" appropriate files (gitweb.cgi, gitweb.js, gitweb.css, git-logo.png and git-favicon.png) to their destination.
For example if git was (or is) installed with /usr prefix and gitwebdir is /var/www/cgi-bin, you can do:

$ make prefix=/usr gitweb                            ;# as yourself
# make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root

Alternatively you can use autoconf generated ./configure script to set up path to git binaries (via config.mak.autogen), so you can write instead

$ make configure                     ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make gitweb ;# as yourself
# make gitwebdir=/var/www/cgi-bin \
install-gitweb ;# as root

The above example assumes that your web server is configured to run [executable] files in /var/www/cgi-bin/ as server scripts (as CGI scripts).

关于git - 您将如何在共享主机中安装 Gitweb?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3828019/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com