git gitlab

gitlab install

1. gitlab base install

1
2
3
4
5
[root@gitserver ~]#  yum -y install curl policycoreutils openssh-server openssh-clients
[root@gitserver ~]# yum -y install postfix
[root@gitserver ~]# systemctl enable sshd
[root@gitserver ~]# systemctl enable postfix
[root@gitserver ~]# systemctl start postfix

2. gitlab install

1
2
[root@gitserver ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@gitserver ~]# yum install gitlab-ce

3. gitlab configuration

1
[root@gitserver ~]# gitlab-ctl reconfigure

4. gitlab stop/start

1
2
3
4
5
6
7
8
[root@gitserver ~]# gitlab-ctl stop
ok: down: gitlab-workhorse: 1s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: postgresql: 0s, normally up
ok: down: redis: 1s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 1s, normally up
1
2
3
4
5
6
7
8
[root@gitserver ~]# gitlab-ctl start
ok: run: gitlab-workhorse: (pid 12049) 1s
ok: run: logrotate: (pid 12054) 0s
ok: run: nginx: (pid 12060) 0s
ok: run: postgresql: (pid 12062) 1s
ok: run: redis: (pid 12070) 0s
ok: run: sidekiq: (pid 12074) 1s
ok: run: unicorn: (pid 12077) 0s