修改GitLab Web服务默认端口和初次登录密码报7 errors问题


因为80端口给Nginx占了 想改个端口,网上方法有很多种 有改/home/git/gitlab/config/gitlab.yml 有改 /etc/gitlab/gitlab.rb 的

这边提供一个16年11月最新GitLab可用的方法

第一步

vi /etc/gitlab/gitlab.rb

修改 external_url 

例如 (整行复制)

external_url https://www.ykzm.in:443

保存

第二步 重启gitlab

sudo gitlab-ctl reconfigure

完成

还遇到一个问题 搞了我好久 就是第一次登陆修改密码提示 用户名 邮箱为空 无法修改

Change your password 7 errors prohibited this user from being saved: – Email can’t be blank – Password can’t be blank – Name can’t be blank – Notification email can’t be blank – Notification email is invalid – Username can contain only letters, digits, ‘_’, ‘-‘ and ‘.’. Cannot start with ‘-‘ or end in ‘.’. – Username can’t be blank

f617493f-6e4f-442b-902f-96da8020166f

其实只要换个浏览器登陆就行了,我用的Chrome,换成Safari就解决了

 


发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注