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

  • 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"
    
主站蜘蛛池模板: 前郭尔| 崇明县| 綦江县| 林甸县| 夏津县| 洛阳市| 渝北区| 古丈县| 巫溪县| 云霄县| 通化县| 文化| 石河子市| 库车县| 宁化县| 藁城市| 盐池县| 乐陵市| 连南| 武汉市| 阿图什市| 龙川县| 关岭| 遂川县| 道孚县| 兰坪| 靖宇县| 古浪县| 巴东县| 黄陵县| 仪征市| 广昌县| 福泉市| 微博| 建湖县| 汝南县| 鹤峰县| 仪陇县| 浦北县| 河池市| 广德县|