gitlab版本:12.4.0-ce
系统:centos7
gitlab使用的数据库是PostgreSQL10,只要把相应的字段打开即可访问web端
基本操作命令:
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
UPDATE application_settings SET password_authentication_enabled_for_web=true;
\q
sudo gitlab-ctl restart
然后等一会待端口启动起来就可以访问了
查询字段
SELECT signup_enabled FROM application_settings;
查询所有字段
SELECT * FROM application_settings;
配置表项
application_settings
查看gitlab版本号:
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
12.4.0
浙公网安备 33010602011771号