Linux搭建Gitlab
CentOS-6安装Gitlab
新建Git源
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gtlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
再执行
yum makecache
安装最新版
yum install gitlab-ce –y
启动:
gitlab-ctl reconfigure
这步需要稍微等待几分钟
查看: gitlab-ctl status
gitlab所有附带的进程和端口
GitLab常用命令
sudo gitlab-ctl start # 启动所有 gitlab 组件;
sudo gitlab-ctl stop # 停止所有 gitlab 组件;
sudo gitlab-ctl restart # 重启所有 gitlab 组件;
sudo gitlab-ctl status # 查看服务状态;
sudo gitlab-ctl reconfigure # 启动服务;
sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab;
sudo gitlab-ctl tail # 查看日志;
登录GitLab
在浏览器的地址栏中输入ECS服务器的公网IP即可登录GitLab的界面,第一次登录使用的用户名和密码为 root 和 5iveL!fe
第一次登录需要修改密码为:Rfd.com.123
完毕
参考文档
Git安装
https://yq.aliyun.com/articles/74395
https://blog.****.net/m0_37606574/article/details/79951478
https://www.cnblogs.com/weifeng1463/p/7714492.html
https://help.aliyun.com/document_detail/52857.html
GIT使用
https://blog.****.net/justlpf/article/details/80681853