cgit安装
来源:互联网 发布:照片转素描软件 编辑:程序博客网 时间:2024/06/16 11:42
第一步: 当然是安装了
sudo aptitude install build-essential autoconf automake libtool libfcgi-dev spawn-fcgi fcgiwrapgit clone https://github.com/gnosek/fcgiwrap.gitgit clone git://hjemli.net/pub/git/cgit
git clone git://github.com/gnosek/fcgiwrap.gitcd fcgiwrap/autoreconf -imakesudo make installsudo cp fcgiwrap /usr/local/bin/
由于hjemli主机目前已经将代码迁移到https://git.zx2c4.com/cgit,所以可以去这个地方下载源码,
然后根据源码中的README来讲cgit安装到系统中。
第二步:居然是配置nginx服务器或者Apache服务器 /etc/nginx/sites-available/default
server {
listen 80;
server_name localhost;
root /var/www/htdocs/cgit;
location ~* ^.+\.(css|png|ico)$ {
expires 30d;
}
location / {
index cgit.cgi;
fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param HTTP_HOST $server_name;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_INFO $uri;
include "fastcgi_params";
}
access_log /var/log/nginx/cgit_access.log;
error_log /var/log/nginx/cgit_error.log warn;
}
第三步:配置cgit的配置文件,将系统的git 仓库配置到/etc/cgitrc
virtual-root=/
enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
#snapshots=tar.gz tar.bz zip
enable-commit-graph=1
enable-subject-links=1
#enable-http-clone=1
enable-http-clone=0
root-desc=Git repositories hosted project
root-title=git repositories
repo.url=xxx.git
repo.path=/home/git/xxx.git
repo.desc= xxx for xxxxxx
repo.owner=xxx
- cgit安装
- [how to] 如何在ubuntu上安装cgit
- cgit patch被接受
- Debian配置cgit
- git项目展示cgit
- cgit增加代码高亮
- 修正了cgit 项目中makefile的一个Bug
- https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- Ubuntu16.04+cuda8.0+cudnnV5.1配置faster-rcnn的方法
- 数据库的水平拆分和垂直拆分
- 剑指Offer_面试题18_树的子结构
- 前端 后端的基本 交互(后端 scala)(二)
- mcrypt加解密
- cgit安装
- 单项链表的删除指定节点
- IntelliJ IDEA 自定义方法注解模板
- while语句
- 数据库概论学习笔记------什么是存储引擎
- linux下zookeeper安装
- Mysql查询昨天、今天、明天、7天、本月、上月.....
- Android 开发环境下载地址 -- 百度网盘 adt-bundle android-studio sdk adt 下载
- poj 3904 Sky Code(莫比乌斯函数)