安装软件包:
apt-get install git-core fcgiwrap nginx
配置nginx.conf:
location ~ /chro(/.*) {
# FastCGI 参数
fastcgi_pass unix:/var/run/fcgiwrap.socket;
#Git-http-backend为Git自带的CGI脚本
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
# git 库在服务器上的跟目录
fastcgi_param GIT_PROJECT_ROOT /home/chro/git/chro;
fastcgi_param PATH_INFO $1;
# 将认证用户信息传递给 fastcgi 程序
fastcgi_param REMOTE_USER $remote_user;
# 包涵默认的 fastcgi 参数;
include fastcgi_params;
# 将允许客户端 post 的最大值调整为 100 兆
#max_client_body_size 100M;
}
apt-get install git-core nginx fcgiwrap
apt-get install git-core nginx fcgiwrap
apt-get install git-core nginx fcgiwrap
apt-get install git-core nginx fcgiwrap
apt-get install git-core nginx fcgiwrap
1
|
apt-get install git-core nginx fcgiwrap
|
1
|
apt-get install git-core nginx fcgiwrap
|
1
|
apt-get install git-core nginx fcgiwrap
|
1
|
apt-get install git-core nginx fcgiwrap
|
apt-get install git-core nginx fcgiwrap
阅读(1082) | 评论(0) | 转发(0) |