GitLab installation and deployment notes in Linux
1. GitLab Introduction
Now, GitHub has become the preferred code hosting platform. Because of its many great functions and simple operations, almost all developers like it. Gitlab is a great Git hosting service that is almost as powerful as GitHub. Gitlab is generally used as an internal private system. If the company uses git distribution code, pull from github is very slow every time, and gitlab is much more convenient.
Ii. Installation
The installation instructions in the official documentation are as follows. For details, visit the gitlab official website.
1. Install Dependencies
- Sudo yum install curl openssh-server openssh-clients postfix cronie
- Sudo service postfix start
- Sudo chkconfig postfix on
- Sudo lokkit-s http-s ssh
2. Add the GitLab repository and install it on the server. (if the package is large and the network speed is low, you can download it on my FTP. Make sure that you select the corresponding version)
- Curl-sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
- Sudo yum install gitlab-ce
3. Configure and start. The following command will automatically configure and initialize gitlab
- Sudo gitlab-ctl reconfigure
4. Start and log on
The following is the default user name and password. You will be prompted to change the password upon first login:
- Username: root
- Password: 5 iveL! Fe
Then you can have fun!