Gitblit
一、下载安装
[root@localhost ~]# wget http://dl.bintray.com/gitblit/releases/gitblit-1.8.0.tar.gz
二、解压
[root@localhost ~]# mkdir /gitblit
[root@localhost ~]# tar -zxvf gitblit-1.8.0.tar.gz -C /gitblit
三、配置
配置路径:
[root@localhost gitblit-1.8.0]# vi service-centos.sh
修改内容:
GITBLIT_PATH=/gitblit/gitblit-1.8.0
GITBLIT_BASE_FOLDER=/gitblit/gitblit-1.8.0/data
GITBLIT_HTTP_PORT=7070
GITBLIT_HTTPS_PORT=7071
添加为服务:
[root@localhost gitblit-1.8.0]# cp service-centos.sh /etc/init.d/gitblit
执行安装:
[root@localhost gitblit-1.8.0]# ./install-service-centos.sh
添加开机启动:
chkconfig --add gitblit
四、启动运行
[root@localhost gitblit-1.8.0]# service gitblit start
Starting gitblit (via systemctl): [ 确定 ]
五、浏览访问
http://192.168.1.104:7070/
用户名密码:
admin