修改默认的密码,改成自己能记住的密码
修改密码,新改的密码必须超过8位
我修改的密码是123456789,修改好以后重新登录即可
root@gitlab:~# gitlab-ctl status run: alertmanager: (pid 20963) 2494s; run: log: (pid 20741) 2550s run: gitaly: (pid 20995) 2493s; run: log: (pid 20095) 2669s run: gitlab-exporter: (pid 20932) 2496s; run: log: (pid 20571) 2570s run: gitlab-workhorse: (pid 20915) 2497s; run: log: (pid 20492) 2584s run: grafana: (pid 20986) 2493s; run: log: (pid 20859) 2512s run: logrotate: (pid 20008) 2682s; run: log: (pid 20021) 2681s run: nginx: (pid 20501) 2583s; run: log: (pid 20519) 2580s run: node-exporter: (pid 20926) 2496s; run: log: (pid 20555) 2576s run: postgres-exporter: (pid 20979) 2493s; run: log: (pid 20763) 2546s run: postgresql: (pid 20236) 2664s; run: log: (pid 20290) 2661s run: prometheus: (pid 20942) 2495s; run: log: (pid 20702) 2558s run: puma: (pid 20426) 2597s; run: log: (pid 20433) 2596s run: redis: (pid 20043) 2676s; run: log: (pid 20066) 2673s run: redis-exporter: (pid 20934) 2495s; run: log: (pid 20626) 2562s run: sidekiq: (pid 20443) 2591s; run: log: (pid 20453) 2590s
gitlab的常用命令
gitlab-rails #用于启动控制台进行特殊操作,如修改管理员密码、打开数据库控制台( gitlab-rails dbconsole)等 gitlab-psql #数据库命令行 gitlab-rake #数据备份恢复等数据操作 #客户端命令行操作行 gitlab-ctl gitlab-ctl reconfigure #修改过配置后需要执行重新配置 gitlab-ctl stop #停止gitlab gitlab-ctl start #启动gitlab gitlab-ctl restart #重启gitlab gitlab-ctl status #查看组件运行状态 gitlab-ctl tail #查看所有日志 gitlab-ctl tail nginx #查看某个组件的日志 gitlab-ctl service-list #列出服务
root@gitlab:~# gitlab-psql psql (12.7) Type "help" for help. gitlabhq_production=# help You are using psql, the command-line interface to PostgreSQL. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g or terminate with semicolon to execute query \q to quit gitlabhq_production=# \db List of tablespaces Name | Owner | Location ------------+-------------+---------- pg_default | gitlab-psql | pg_global | gitlab-psql | (2 rows) 推出 \q
修改Gitlab界面为中文
,
拉到最下面更新一下个人资料就可以了
默认情况gitlab是允许用户注册的,如果想关掉用户注册如下操作
找到设置
找到注册限制,点击后面的展开
根据自己的需求是否启动注册等功能,把√去掉就行,这个功能就取消掉了!
修改好以后保存即可
更改邮箱设置
改成你自己的发件的 邮箱就行了
点击 确认您的电子邮件地址即可
再来改掉用户的邮箱
然后点击更新资料即可
设置好以后再来看这个邮件就是默认的了