`

CentOS 7 Linux 安装 gitlab-ce-9.0.5

阅读更多

[root@localhost temp]# rpm -i gitlab-ce-9.0.5-ce.0.el6.x86_64.rpm 

 

 

       *.                  *.

      ***                 ***

     *****               *****

    .******             *******

    ********            ********

   ,,,,,,,,,***********,,,,,,,,,

  ,,,,,,,,,,,*********,,,,,,,,,,,

  .,,,,,,,,,,,*******,,,,,,,,,,,,

      ,,,,,,,,,*****,,,,,,,,,.

         ,,,,,,,****,,,,,,

            .,,,***,,,,

                ,*,.

 

     _______ __  __          __

    / ____(_) /_/ /   ____ _/ /_

   / / __/ / __/ /   / __ `/ __ \

  / /_/ / / /_/ /___/ /_/ / /_/ /

  \____/_/\__/_____/\__,_/_.___/

 

 

gitlab: Thank you for installing GitLab!

gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

 

sudo gitlab-ctl reconfigure

 

gitlab: GitLab should be reachable at http://localhost

gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file

gitlab: And running reconfigure again.

gitlab: 

gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme

gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

gitlab: 

It looks like GitLab has not been configured yet; skipping the upgrade script.

[root@localhost temp]#  gitlab-ctl reconfigure

Starting Chef Client, version 12.12.15

Running handlers:

Running handlers complete

Chef Client finished, 326/433 resources updated in 02 minutes 44 seconds

gitlab Reconfigured!

#访问

http://192.168.0.164

[root@localhost temp]# ssh-keygen -t rsa -C "xiongjiajia2007@qq.com" -b 4096

Generating public/private rsa key pair.

Enter file in which to save the key (/root/.ssh/id_rsa): /home/nescafe/temp/sshkey/k

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /home/nescafe/temp/sshkey/k.

Your public key has been saved in /home/nescafe/temp/sshkey/k.pub.

The key fingerprint is:

ff:38:0f:a7:cd:cb:14:21:16:1b:73:e8:47:f4:84:f3 xiongjiajia2007@qq.com

The key's randomart image is:

+--[ RSA 4096]----+

|          +oo..  |

|          .*+o   |

|         .+..o.  |

|         .....E  |

|        S  ..    |

|         .   .   |

|          o o    |

|          .@     |

|          ooB.   |

+-----------------+

[root@localhost sshkey]# xclip -sel clip < ~/.ssh/id_rsa.pub

 

#Git global setup

git config --global user.name "xiongjiajia"

git config --global user.email "xiongjiajia2007@qq.com"

 

#Create a new repository

git clone git@localhost:xiongjiajia/springAc.git

cd springAc

touch README.md

git add README.md

git commit -m "add README"

git push -u origin master

 

#Existing folder

cd existing_folder

git init

git remote add origin git@localhost:xiongjiajia/springAc.git

git add .

git commit

git push -u origin master

 

#Existing Git repository

cd existing_repo

git remote add origin git@localhost:xiongjiajia/springAc.git

git push -u origin --all

git push -u origin --tags

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics