Home > Development Tools > git > Let's talk about what port numbers are needed to build a gitlab server

Let's talk about what port numbers are needed to build a gitlab server

PHPz
Release: 2023-03-29 13:34:18
Original
4827 people have browsed it

GitLab is an open source version control system, similar to GitHub, but can be built on a private server. During the process of setting up the GitLab server, you need to configure some port numbers so that various GitLab services can run normally. This article will introduce you to the port numbers required to build a GitLab server.

HTTP/S port: 80/443

GitLab communicates through the HTTP/S protocol, so HTTP (port number 80) and HTTPS (port number 443) ports need to be opened. The HTTP port is used when GitLab does not enable HTTPS, while the HTTPS port is used when HTTPS is enabled. If you don't have your own SSL certificate yet, you can use the self-signed certificate provided by GitLab.

SSH port: 22

GitLab uses the SSH protocol for code submission, merging and other operations, so the SSH port number (22) needs to be opened. You can use OpenSSH and other tools to connect to the server and perform related operations.

SMTP port: 25

GitLab supports SMTP email service, which will be used during registration, password reset, etc. The SMTP port number defaults to 25.

Git port: 9418

GitLab transmits and manages code through the Git protocol. The Git client can connect to the GitLab server through this port for code push and pull operations. The Git port number defaults to 9418.

NFS port: 2049

GitLab can use NFS (Network File System) to manage code sharing between developers, and the NFS protocol uses port 2049 for communication by default.

Redis port: 6379

GitLab uses Redis to cache session data and other information. The Redis port number defaults to 6379.

PostgreSQL port: 5432

GitLab uses PostgreSQL to store the code base and other related data, such as users, projects, groups, etc. The PostgreSQL port number defaults to 5432.

The above are the port numbers required to build the GitLab server. When you start creating your own server, be sure to double-check that these port numbers are open and make sure your server has adequate security to protect your code and other sensitive information.

The above is the detailed content of Let's talk about what port numbers are needed to build a gitlab server. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template