There are several commands you need to know before installing GitLab:

  • Gitlab-ctl reconfigure re-reads the configuration file and restarts
  • Gitlab-ctl tail Displays gitlab logs
  • Gitlab -ctl start Starts gitlab
  • Gitlab -ctl stop Stops gitlab

When problems occur in the installation, use gitlab-ctl tail to check the output logs to see which component has problems.

The following problems occurred during my re-installation:

Port 8080 is occupied

There are two places where port conflicts occur, especially if tomcat is installed and port 8080 is used by default, you need to change the two places:

puma['port']=8080
unicorn['port']=8080
Copy the code

Prometheus failed to start

I directly disable this function and check the log to find the cause that port 9090 is occupied

prometheus['enable']=false
prometheus['monitor_kubernetes']=false
Copy the code

Here you can modify the listening port directly:

prometheus['listen_address']='localhost:9090'
Copy the code