ubuntu 中搭建gitlab方法
sudo apt-get install -y vim
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server postfix checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
sudo gem install bundler
sudo adduser --disabled-login --gecos 'GitLab' git
7. GitLab shell
GitLab Shell is a ssh access and repository management software developed specially for GitLab.
13 Initialise Database and Activate Advanced Features
sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
14 Install Init Script
Download the init script (will be /etc/init.d/gitlab):
Make GitLab start on boot:
sudo update-rc.d gitlab defaults 21
15 Check Application Status
Check if GitLab and its environment are configured correctly:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
To make sure you didn't miss anything run a more thorough check with:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
If all items are green, then congratulations on successfully installing GitLab! However there are still a few steps left.
16 Start Your GitLab Instance
sudo apt-get install nginx
Make sure to edit the config file to match your setup:
sudo service nginx restart
Visit YOUR_SERVER for your first GitLab login. The setup has created an admin account for you. You can use it to log in:
Important Note: Please go over to your profile page and immediately chage the password, so nobody can access your GitLab by using this login information later on.
更多推荐
所有评论(0)