因为工做须要将redis认证方式改成了容许远程链接,并做了requirepass设置,postgresql认证方式也改成了容许远程链接而且须要经过密码。git
提交的动态没法写入,表如今gitlab上就是提交的动态没法在首页显示,postgresql中也没有提交记录
- 修改gitlab数据库配置 /home/git/gitlab/config/database.yml
production: adapter: postgresql encoding: unicode database: gitlabhq_production pool: 10 username: 用户名 password: 密码 host: localhost port: 5432
- 修改resque.yml 配置,主要是链接redis配置
development: redis://:密码@localhost:6379/数据库(可选) test: redis://:密码@localhost:6379/数据库(可选) production: redis://:密码@localhost:6379/数据库(可选)
- 修改gitlab-shell中redis配置, 链接redis配置 /home/git/gitlab-shell/config.yml
redis: bin: /usr/bin/redis-cli host: localhost port: 6379 password: 密码 db: 数据库 namespace: resque:gitlab
- 修改gitlab程序 /home/git/gitlab-shell/lib/gitlab_config.rb 58行
//加上密码和数据库参数 %W(#{redis['bin']} -h #{redis['host']} -p #{redis['port']} -a #{redis['password']} -n #{redis['db']})