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. After Entering http: // localhost/in the browser, 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.