Gitlab安装配置
嫁狗狮
嫁狗狮
展开
-
SSL certificate problem: unable to get local issuer certificate
提示SSL证书错误。这个错误并不重要是系统证书的问题,系统判断到这个行为会造成不良影响,所以进行了阻止,只要设置跳过SSL证书验证就可以了env GIT_SSL_NO_VERIFY=true git clone https://或 git config http.sslVerify "false"然后在git clone/push/pull原创 2017-04-28 13:44:45 · 1970 阅读 · 0 评论 -
gitlab无法push或clone的错误:JWT::DecodeError (Nil JSON web token): lib/gitlab/workhorse.rb:120:in `verify_
问题出在反代的配置上:nginx或者apache的反代应该反代到 http://gitlab-workhorse; 而不应该反代到http://127.0.0.1:8080当然,这里并不是不能设置成http://127.0.0.1:8080,需要其他配置文件中做处理。如果感兴趣可以看我gitlab文章中的其他内容。原创 2017-04-22 15:44:24 · 1561 阅读 · 0 评论 -
git工作模式图示
git转载 2017-05-23 20:12:06 · 317 阅读 · 0 评论 -
gem install mysql2时候报错
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/gaojuntao/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rbchecking for rb_thread_blocking_region()转载 2017-04-22 14:37:03 · 1055 阅读 · 0 评论 -
安装yarn
sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.reposudo yum install yarn如果这样安装不了,就先安装nodejs吧:yum intall nodejs或者curl --silent --location https://rpm.nodesource.com原创 2017-04-21 15:53:13 · 354 阅读 · 0 评论 -
gitlab备份-源码安装
手动备份:cd /home/git/gitlabsudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production STRATEGY=copy注:跳过某些内容sudo -u git -H bundle exec rake gitlab:backup:create SKIP=db,uploads RAIL原创 2017-04-21 15:30:22 · 618 阅读 · 0 评论 -
Gitlab Omnibus - Installation Problems - CentOS 7 (SELinux)
如果这步出错:sudo gitlab-ctl reconfigure请安装:sudo yum install libsemanage-static libsemanage-devel转载 2017-04-21 15:17:19 · 243 阅读 · 0 评论 -
gem install bundler
前提是需要安装gem,可以参看我的另一篇文章 RubyGems 镜像gem install bundler --no-ri --no-rdoc原创 2017-04-21 14:33:34 · 972 阅读 · 0 评论 -
RubyGems 镜像
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/$ gem sources -l*** CURRENT SOURCES ***https://gems.ruby-china.org# 请确保只有 gems.ruby-china.org$ gem inst转载 2017-04-21 14:18:05 · 666 阅读 · 1 评论 -
gitlab配置邮件
1、sudo -u git -H cp /home/git/gitlab/config/initializers/smtp_settings.rb.sample /home/git/gitlab/config/initializers/smtp_settings.rbvim /home/git/gitlab/config/initializers/smtp_settings.rb原创 2017-05-11 14:47:58 · 704 阅读 · 0 评论 -
gitlab集成ldap配置
vim /home/git/gitlab/config/gitlab.ymlldap: enabled: true servers: host: 'host' uid: 'uid' bind_dn: 'cn=root,dc=xxx,dc=com' password: 'xxx' b原创 2017-05-11 14:46:46 · 698 阅读 · 0 评论 -
gitlab基本配置
注:是否配置https、相对路径/gitlab根据实际情况1、gitlab.ymlcd /home/git/gitlabvim config/gitlab.yml编辑如下:第32行gitlab: ## Web server settings (note: host is the FQDN, do not include http://) host:dom原创 2017-05-11 14:37:20 · 1374 阅读 · 0 评论 -
gitlab安装配置
注:有关配置文件的修改可以参考我的另外一篇文章1、更新===根据实际情况yum update -yyum upgrade -yupdate-alternatives --set editor /usr/bin/vim.basic2、安装依赖yum -y install vim sudo epel-release build-essential zlib1g-de原创 2017-05-11 14:27:45 · 984 阅读 · 0 评论 -
gitlab https访问不了
gitlab https访问不了:git config --global http.sslverify false原创 2017-08-22 10:07:25 · 4108 阅读 · 0 评论