typora/note/devops/gitlab/更改 root 用户密码.md

12 lines
202 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### sudo 权限用户
```
sudo gitlab-rails c -e production
```
### console 输入
```
user = User.find_by_name("root")
user.password = "xxxxxxxx"
user.password_confirmation = "xxxxxxxx"
user.save!
```