Ubuntu installed gitlab5.3 is a little different from Debian because sudo/python is installed in ubuntu by default, and the gedit editor is easier to use than vim... so there is no code to install sudo/python and vim ..... ubuntu 13.04 install gitlab 5.3 ubuntu and Debian is a little different, because ubuntu installed sudo/python by default, and the gedit editor is easier to use than vim... so there is no code for installing sudo/python and vim... start now... i. software source installation required Package 1 sudo apt-get update1sudo 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 II. compile and install ruby 1.9.31mkdir/tmp/ruby & cd/tmp/ruby2curl -- progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | Tar xz3cd ruby-1.9.3-p3924. /configure5make6sudo make installsudo gem install bundler 3. create sudo adduser -- disabled-login -- gecos 'gitlab 'Git IV for gitlab. install gitlab-shell # log on to the git User sudo su git created in step 3 # switch to the git User's home directory cd/home/git # clone gitlab-shellgit clone https://github.com/gitlabhq/gitlab-shell.git Cd gitlab-shell # switch to the GitHub lab-shell v1.4.0 branch git checkout v1.4.0 cp config. yml. example config. yml # Edit the configuration file config. ym and replace gitlab_url # with the host domain name. for example' http://domain.com/ '. If the local Lan is installed, localhost is used by default. gedit config. yml # Start Installation .. /bin/install 5. install the database # install the mysql database from the software source. during the installation process, you will be asked to enter the password of the mysql root user twice. remember this! Sudo apt-get install-y mysql-server mysql-client libmysqlclient-dev # use the root user to log on to mysqlmysql-u root-p # Create a gitlab user, replace the password with your database gitlab user password. remember. (Note: The previous mysql> do not need to copy) mysql> create user 'gitlab '@ 'localhost' identified by 'password '; # CREATE gitlabhq_production DATABASE mysql> create database if not exists 'gitlabhq _ production 'default character set 'utf8' COLLATE 'utf8 _ unicode_ci '; # GRANT permissions such as addition, deletion, modification, and query of the gitlabhq_production database to the gitlab user mysql> grant select, lock tables, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, alter on 'gitlabhq _ production '. * TO 'gitlab '@ 'localhost'; # log out of mysql database mysql> \ q # try TO connect TO the gitlabhq_production database with gitlab user, and log on successfully (note: mysql> is displayed) the database configuration is complete. sudo-u git-H mysql-u gitlab-p-D gitlabhq_production 6. install gitlab # install gitlab in the home directory of the git User. cd/home/git # clone the gitlab project sudo-u git-H git clone https://github.com/gitlabhq/gitlabhq.git Gitlab # go to the gitlab directory cd/home/git/gitlab # switch to gitlab's 5.3 branch. sudo-u git-H git checkout 5-3-stablecd/home/git/gitlab # Copy the sample configuration file of gitlab to the sudo-u git-H cp config/gitlab directory. yml. example config/gitlab. yml # If you are not using a local server, change localhost to the server domain name sudo-u git-H gedit config/gitlab of gitlab. yml # ensure that the current user has read and write permissions on the gitlab log and tmp files. sudo chown-R git log/sudo chown-R git tmp/sudo chmod-R u + rwX log/sudo chm Od-R u + rwX tmp/# Create a directory I don't know... Khan! Sudo-u git-H mkdir/home/git/gitlab-satellites # create two directories I don't know... make sure that the current user has the read and write permissions on him. sudo-u git-H mkdir tmp/pids/sudo-u git-H mkdir tmp/sockets/sudo chmod-R u + rwX tmp/pids/sudo chmod-R u + rwX tmp/sockets/# Create a public Upload backup directory, make sure that the current user has read and write permissions. otherwise, the backup will fail. sudo-u git-H mkdir public/uploadssudo chmod-R u + rwX public/uploads # Copy the sample configuration file to the sudo-u git-H cp config/puma directory. rb. example config/puma. rb # Find a row # wor Kers 2, remove the previous # and change 2 to 3. sudo-u git-H gedit config/puma. rb # configure the global settings of gitlab. sudo-u git-H git config -- global user. name "GitLab" sudo-u git-H git config -- global user. email "gitlab @ localhost" # Copy the sample Mysql configuration file to the sudo-u git cp config/database Directory. yml. mysql config/database. yml # Change the root password to gitlab and the password to the created gitlab mysql User password sudo gedit config/database. yml # install something I don't know... I have no face translation... let's take a look at the original tutorial cd/home/gi. T/gitlabsudo gem install charlock_holmes -- version '0. 6.9.4 'sudo-u git-H bundle install -- deployment -- without development test your ssudo-u git-H bundle exec rake gitlab: setup RAILS_ENV = production # Download The gitlab start/stop script, and add the executable permissions of the current user. sudo cp lib/support/init. d/gitlab/etc/init. d/gitlabsudo chmod + x/etc/init. d/gitlab # Add gitlab boot sudo update-rc.d gitlab defaults 21 # check gitlab status and environment configuration is correct Indeed. sudo-u git-H bundle exec rake gitlab: env: info RAILS_ENV = production # start gitlabsudo service gitlab start # or sudo/etc/init. d/gitlab restart # Check The gitlab status again. if all the items are green, gitlab configuration is successful. I don't know why. I have to run this command twice to make full green sudo-u git-H bundle exec rake gitlab: check RAILS_ENV = production 7. configure Nginx # install Nginxsudo apt-get install nginx # Copy the gitlab sample configuration to the specified directory sudo cp lib/support/nginx/gitlab/etc/nginx/sites-available/gi Tlabsudo ln-s/etc/nginx/sites-available/gitlab/etc/nginx/sites-enabled/gitlab # Modify the configuration file. change YOUR_SERVER_FQDN to the domain name or local IP address of your gitlab server, and change listen *: 80 sudo gedit/etc/nginx/sites-available/gitlab # restart the nginx server sudo service nginx restart # open the browser and enter the local IP address. you can log on with the following user password. admin@local.host5iveL! Fe
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