博客为日常工作学习积累总结:

1.安装gitlub

sudo yum install -y curl policycoreutils-python openssh-server openssh-clients 

  •  

    SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。 sudo systemctl enable sshd
  •  

    sudo systemctl start sshd
    1.     sudo yum install postfix
  •  

    1.  
    1.     sudo systemctl enable postfix   sudo systemctl start postfix    

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm 

修改配置文件:

[root@git ~]# vim /etc/gitlab/gitlab.rb 

13 external_url 'http://192.168.50.184'

[root@git ~]# gitlab-ctl reconfigure

访问:http://192.168.50.184/

设置密码:*****

设置账号:root

 

2.命令练习

 查看运行的组件

gitlab-ctl start

gitlab-ctl stop

gitlab-ctl restart

gitlab-ctl show-config

[root@git ~]# gitlab-ctl status
run: gitaly: (pid 17810) 984s; run: log: (pid 17480) 1043s
run: gitlab-monitor: (pid 17847) 983s; run: log: (pid 17697) 1013s
run: gitlab-workhorse: (pid 17824) 984s; run: log: (pid 17545) 1037s
run: logrotate: (pid 17607) 1025s; run: log: (pid 17606) 1025s
run: nginx: (pid 17571) 1031s; run: log: (pid 17570) 1031s
run: node-exporter: (pid 17676) 1019s; run: log: (pid 17675) 1019s
run: postgres-exporter: (pid 17905) 982s; run: log: (pid 17761) 999s
run: postgresql: (pid 17305) 1082s; run: log: (pid 17304) 1082s
run: prometheus: (pid 17855) 983s; run: log: (pid 17736) 1005s
run: redis: (pid 17233) 1090s; run: log: (pid 17232) 1090s
run: redis-exporter: (pid 17720) 1008s; run: log: (pid 17719) 1008s
run: sidekiq: (pid 17462) 1046s; run: log: (pid 17461) 1046s
run: unicorn: (pid 17423) 1052s; run: log: (pid 17422) 1052s

查看组件日子:

[root@git ~]# gitlab-ctl tail nginx

[root@git ~]# cd /var/log/gitlab/

3.管理员界面操作

小扳手的图标:admin area

第一步:创建用户组

 

gitlab汉化:

https://blog.csdn.net/qq_40025218/article/details/81360794

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄