202 B
202 B
sudo 权限用户
sudo gitlab-rails c -e production
console 输入
user = User.find_by_name("root")
user.password = "xxxxxxxx"
user.password_confirmation = "xxxxxxxx"
user.save!