gitlab官网:https://about.gitlab.com/
gitlab包的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/
1) 下载rpm package包并安装
自行选择安装版本
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-9.3.3-ce.0.el6.x86_64.rpm |
也可以用yum镜像安装(参考)
https://blog.youkuaiyun.com/it_lihongmin/article/details/80809659
https://www.cnblogs.com/weifeng1463/p/7714492.html
2) 配置并启动GitLab
打开 /etc/gitlab/gitlab.rb ,将 external_url = 'http://git.example.com' 修改为自己的IP地址: http://xxx.xx.xxx.xx ,,然后执行下面的命令,对GitLab进行编译。
sudo gitlab-ctl reconfigure |
一些常用的相关命令如下:
|
3) 登录GitLab
访问:http://IP
Username: root Password: 5iveL!fe |
提示修改密码,修改完成后进行登录即可