官术网_书友最值得收藏!

  • GitLab Cookbook
  • Jeroen van Baarsen
  • 116字
  • 2021-08-05 16:55:04

Set up the database for source installation

GitLab can be installed using PostgreSQL or MySQL. In this recipe, I will use PostgreSQL as it is the recommended database engine.

How to do it…

The following steps are applicable for Debian-based systems; they are also possible with RedHat. You can take a look at gitlab.com for the installation instructions.

  1. Install PostgreSQL 9.1:
    sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev
    
  2. Create the PostgreSQL user for GitLab:
    sudo –u postgresql psql –d template1 –c "CREATE USER git CREATEDB"
    
  3. Create the database for GitLab and grant all privileges on the database:
    sudo –u postgresql psql –d template1 –c "CREATE DATABASE gitlabhq_production OWNER git"
    
主站蜘蛛池模板: 云梦县| 枣阳市| 扶沟县| 汪清县| 常熟市| 建始县| 樟树市| 孝义市| 夹江县| 剑川县| 景宁| 易门县| 沅江市| 莱芜市| 尚志市| 博客| 无棣县| 巨鹿县| 廉江市| 辛集市| 华阴市| 辉县市| 内丘县| 张掖市| 平乡县| 綦江县| 福海县| 武城县| 昌邑市| 桐梓县| 宾川县| 宁陕县| 和静县| 永修县| 禹州市| 略阳县| 乌鲁木齐县| 利川市| 延庆县| 香港 | 涿州市|