Release Notes
Product Announcements
WITH until version 8./opt to mount an independent data disk.root account to run the following statements to install GitLab. If a message indicating that the dependency packages are not installed is displayed in the last step, you can directly use yum or other installation tools to install them.curl https://packages.gitlab.com/install/repositories/gitlab/gitlabce/script.rpm.sh > gitlab-ee_install.shsh gitlab-ee_install.shexport EXTERNAL_URL=https://gitlab.example.comyum install -y curl policycoreutils-python openssh-server cronierpm -ivh gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm
GitLab Version | Earliest Supported PostgreSQL Version |
13.0 | 11 |
14.0 | 12 |
psql -U <database admin> -p <port> -d postgres -h <access address>
gitlab. Note that the account must have the superuser privileges or admin privileges granted by TencentDB such as pg_tencentdb_superuser.create user gitlab login password 'gitlab_****_password#123';grant gitlab to <current admin account>; grant pg_tencentdb_superuser to gitlab;
gitlab.create database gitlab owner=gitlab ENCODING = 'UTF8';
pg_trgm, btree_gist, and plpgsql extensions, which don't need to be created in advance. They will be automatically created during GitLab initialization, but you should ensure that they can be created successfully./etc/gitlab/gitlab.rb by default. The file has no configuration information by default. You can run the following command to view it:# cat /etc/gitlab/gitlab.rb |grep -v ^# | grep -v ^$external_url 'http://gitlab.example.com'
## postgresql connect## Set this parameter to `false`, indicating to disable the embedded PostgreSQL data source and use an external one.postgresql['enable'] = falsegitlab_rails['db_adapter'] = "postgresql"gitlab_rails['db_encoding'] = "utf8"## Database namegitlab_rails['db_database'] = "gitlab"gitlab_rails['db_pool'] = 100 ## Database usergitlab_rails['db_username'] = "gitlab"## Password, which can be changed as neededgitlab_rails['db_password'] = "gitlab_Test_password#123" ## Access addressgitlab_rails['db_host'] = "gz-tdcpg-ep-6kvx6p19.sql.tencentcdb.com" ## Access portgitlab_rails['db_port'] = "25870"
ActiveRecord::ConnectionNotEstablished: could not translate host name "gz-tdcpgep-6kvx6p19.sql.tencentcdb.com " to address: Name or service not knownping command to find the IP address of the domain name or a DNS server that can resolve it. We recommend you not directly modify an access domain name to an IP address, as in scenarios where a domain name is used, the database backend is usually configured with load balancing or high availability. In this case, you can directly configure the DNS server or host on the server. If the database service changes, you can directly modify the DNS service or host to avoid modifying the GitLab service.gitlab Reconfigured! is displayed, GitLab has been initialized.gitlab-ctl reconfigure
gitlab-ctl startok
http://{accessible server IP address}/users/sign_in
The login page is as shown below:
root. The following message will be displayed for the initial password upon the completion of initialization:Password stored to /etc/gitlab/initial_root_password. This file will becleaned up in first reconfigure run after 24 hours.

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan