Install GitLab6.0 on Ubuntu12.04

Source: Internet
Author: User
Install GitLab6.0 installation environment on Ubuntu12.04: Operating system: Ubuntu12.4LTS English database: mysql5.5.32web server: nginx1.4.1 first ,... install the GitLab6.0 installation environment on Ubuntu 12.04: Operating system: Ubuntu 12.4 LTS English database: mysql5.32 web Server: nginx1.4.1 first, add the git and nginx ppa and upgrade the system to the latest version. [Plain] sudo apt-add-repository ppa: git-core/ppa sudo add-apt-repository ppa: nginx/stable Software Up to Date, then install vim, and set it as the default editor. [Plain] # Install vim and set as default editor sudo apt-get install-y vim sudo update-alternatives -- set editor/usr/bin/vim. basic. finally, Install the dependency program. [Plain] 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 checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev optional install the following two programs: [plain] sudo apt-get install python-docutils sudo apt-get install-y postfix for other steps, follow the official installation documentation. During installation, note the following two points: 1. when you Install the "Install Init Script" in GitLab (6th stride), [plain] sudo cp lib/support/init. d/gitlab/etc/init. d/gitlab is replaced with [plain] sudo curl -- output/etc/init. d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6-0-stable/lib/support/init.d/gitlab 2. when installing "Site Configuration" in Nginx (7th stride), replace it with [plain] sudo cp lib/support/nginx/gitlab/etc/nginx/sites-available/gitlab: [plain] sudo curl -- output/etc/nginx/sites-available/gitlab https://raw.github.com/gitlabhq/gitlabhq/6-0-stable/lib/support/nginx/gitlab Configuration file modification: (1) Gitlab shell File: config. yml status: default (not modified) gitlab_url :" http://localhost/ "(2) Gitlab I. gitlab File: gitlab. yml status: default (not modified) host: localhost II. unicorn File: gitlab. yml status: default (not modified) (3) Nginx File: gitlab status: changed server_name: localhost
FAQ: 1. enter: http://localhost/ The logon page is not displayed. View/var/log/nginx/error. log: [plain] 2013/08/23 23:34:44 [emerg] 4775 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 23:34:53 [emerg] 4781 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 23:34:59 [emerg] 4787 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 2013/08/ 23 23:40:14 [emerg] 4857 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 2013/08/23 23:42:41 [emerg] 1058 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 23:55:04 [emerg] 2883 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 00:25:45 [emerg] 3679 #0: a duplicate default serv Er for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 2013/08/24 00:25:55 [emerg] 3683 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 00:26:48 [emerg] 3696 #0: a duplicate default server for 0.0.0.0: 80 in/etc/nginx/sites-enabled/gitlab: 10 delete the/etc/nginx/sites-available/default file and restart the service ([plain] sudo service nginx restart) you can.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.