[root@server1 ~]# yum install -y git
[root@server1 ~]# yum install gitlab-ce-11.2.0-ce.0.el7.x86_64.rpm -y
[root@server1 ~]# cd /etc/gitlab/
[root@server1 gitlab]# ls
gitlab.rb
[root@server1 gitlab]# vim gitlab.rb
13 external_url 'http://172.25.76.1'
[root@server1 gitlab]# gitlab-ctl reconfigure
在浏览器输入172.25.76.1
修改密码
用root用户登陆
create a project
add an ssh key
[root@server1 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
32:dc:e6:39:6b:6d:30:ca:76:e5:ad:c6:12:9f:f8:8d root@server1
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| . . |
| + S |
| =+.. |
| . .+@ o |
| + =oOo. |
| . o.=E.. |
+-----------------+
[root@server1 ~]# cd .ssh/
[root@server1 .ssh]# ls
id