2-Gitlab基本配置

修改默认的密码,改成自己能记住的密码

image-20220716115112164.png




修改密码,新改的密码必须超过8位

image-20220716115435543.png



!!!!!!!!!!!!!!!!!!!!!!!!新改的密码必须超过8位!!!!!!!!!!!!!!!!!!!!!!!!!

我修改的密码是123456789,修改好以后重新登录即可

查看gitlab的状态

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界面为中文


image-20220716122232416.png

image-20220716122320109.png


image-20220716122320109.png


修改自己的头像自己上传一张自己的图像就行了!!!!

image-20220716142641870.png


拉到最下面更新一下个人资料就可以了

image-20220716142804464.png


默认情况gitlab是允许用户注册的,如果想关掉用户注册如下操作

image-20220716144856730.png


找到设置

image-20220716145117103.png


找到注册限制,点击后面的展开

image-20220716145232474.png


根据自己的需求是否启动注册等功能,把√去掉就行,这个功能就取消掉了!


image-20220716145316738.png


修改好以后保存即可

image-20220716145533702.png


更改邮箱设置

image-20220716145803430.png


改成你自己的发件的 邮箱就行了

image-20220716145857819.png



点击添加电子邮件地址即可

然后点击重新发送确认邮件,你的邮箱就会收到一封邮件

image-20220716151250432.png

点击 确认您的电子邮件地址即可


image-20220716151338965.png


再来改掉用户的邮箱

image-20220716152641494.png


然后点击更新资料即可

image-20220716152815768.png


设置好以后再来看这个邮件就是默认的了

image-20220716153157994.png


本文 暂无 评论

Top