标签:erro not use log url pos one rails word
环境:centos7.4
gitlab 10.4.4
sudo yum install curl openssh-server openssh-clients cronie
sudo lokkit -s http -s ssh
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 install gitlab-ce
vim /etc/gitlab/gitlab.rb
# 修改变量
external_url ‘http://192.168.1.20‘
# 重新加载配置文件
gitlab-ctl reconfigure
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
10.4.4
git clone https://gitlab.com/xhang/gitlab.git
gitlab-ctl stop
cd gitlab/
git fetch
git diff v10.4.4 v10.4.4-zh > ../10.4.4-zh.diff
cd ..
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 10.4.4-zh.diff
gitlab-ctl start
vim /etc/gitlab/girlab.rb
gitlab_rails[‘gitlab_email_from‘] = ‘user1@163.com‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.163.com"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "user1@163.com"
gitlab_rails[‘smtp_password‘] = "password"
gitlab_rails[‘smtp_domain‘] = "smtp.163.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = true
gitlab_rails[‘gitlab_email_from‘] = ‘hequan@163.com‘
#重新加载配置
gitlab-ctl reconfigure
#测试配置是否成功
gitlab-rails console
# 稍等几分钟
Notify.test_email(‘9278718999@qq.com‘, ‘测试主题‘, ‘测试内容‘).deliver_now
gitlab-ctl status 查看GitLab的运行状态
gitlab-ctl restart 重新启动
gitlab-ctl tail unicorn 查看unicorn日志; 按 Ctrl-C 退出
gitlab-ctl tail gitlab-rails 拉取/var/log/gitlab下子目录的日志
gitlab-ctl tail nginx/gitlab_error.log 拉取某个指定的日志
gitlab-ctl tail 查看所有的logs; 按 Ctrl-C 退出
标签:erro not use log url pos one rails word
原文地址:http://blog.51cto.com/hequan/2072267