centos 安装gitlab-ce 13
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
yum makecache
yum -y install gitlab-ce
vim /etc/gitlab/gitlab.rb
external_url 'http://ip\域名'
gitlab-ctl reconfigure
gitlab-ctl start |stop |restart |status
gitlab-ctl service-list
http://ip\域名 //默认80端口
1、查看进程,端口是否被占用
gitlab-ctl tail [进程名]
2、权限问题
chmod -R 755 /var/log/gitlab
3、内存不足
4、gitlab-rake gitlab:check
5、gitlab-ctl restart sidekiq
gitlab-ctl hup unicorn
1、gitlab.rb
vim /etc/gitlab/gitlab.rb
external_url 'http://ip:8082'
unicorn['listen'] = '127.0.0.1'
unicorn['port'] = 8082
nginx['listen_addresses'] = ['*']
nginx['listen_port'] = 82
2、gitlab-rails
vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
host: 101.200.63.123
port: 82
vim /var/opt/gitlab/gitlab-rails/etc/puma.rb
bind 'tcp://127.0.0.1:8082'
3、gitlab nginx
vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
server {
listen *:82;
server_name ip;
4、gitlab-shell
vim var/opt/gitlab/gitlab-shell/config.yml
gitlab_url: "http://127.0.0.1:8082"