亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

GitLab修改PostgreSQL數據庫文件位置的問題

GitLab修改PostgreSQL數據庫文件位置的問題

jeck貓 2018-08-03 06:09:03
默認情況下,GitLab會將數據庫文件放在 /var/opt/gitlab/postgresql/data 中。如果要修改數據庫文件位置,需要將 /var/opt/gitlab/postgresql/data 中的所有文件復制到新的位置,然后在 /etc/gitlab/gitlab.rb 中設置以下4個配置至新的位置:postgresql['dir'] = postgresql['data_dir'] =  postgresql['log_directory'] = postgresql['home'] =進行這樣的設置后,運行gitlab-ctl reconfigure,卻出現下面的錯誤提示:================================================================================ Error executing action `create` on resource 'user[gitlab-psql]' ================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '8' ---- Begin output of ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] ---- STDOUT:  STDERR: usermod: user gitlab-psql is currently logged in ---- End output of ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] ---- Ran ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] returned 8
查看完整描述

1 回答

?
慕的地10843

TA貢獻1785條經驗 獲得超8個贊

usermod -d /gitlab/postgresql/data gitlab-psql,意思應該是切換一下gitlab-psql用戶的登入目錄.

查看完整回答
反對 回復 2018-08-31
  • 1 回答
  • 0 關注
  • 1872 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號