因爲工做須要將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']})