鹏程万里------ubuntu16.04安装gitlab

root@GIT:/home# sudo netstat -anptl
激活Internet连接 (服务器和已建立连接的)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      825/dnsmasq     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      33426/sshd      
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      6180/cupsd      
tcp        0    148 192.168.10.80:22        192.168.2.111:54111     ESTABLISHED 7133/20         
tcp6       0      0 :::22                   :::*                    LISTEN      33426/sshd      
tcp6       0      0 ::1:631                 :::*                    LISTEN      6180/cupsd      
root@GIT:/home# sudo apt-get install curl
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列【新】软件包将被安装:
  curl
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 85 个软件包未被升级。
需要下载 139 kB 的归档。
解压缩后会消耗 340 kB 的额外空间。
获取:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.14 [139 kB]
已下载 139 kB,耗时 1秒 (99.1 kB/s)
正在选中未选择的软件包 curl。
(正在读取数据库 ... 系统当前共安装有 211738 个文件和目录。)
正准备解包 .../curl_7.47.0-1ubuntu2.14_amd64.deb  ...
正在解包 curl (7.47.0-1ubuntu2.14) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 curl (7.47.0-1ubuntu2.14) ...
root@GIT:/home# sudo apt-get install ca-certificates
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
ca-certificates 已经是最新版 (20170717~16.04.2)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 85 个软件包未被升级。
root@GIT:/home# sudo apt-get install postfix

这里选择internet哪项然后默认选择到底
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
建议安装:
  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb postfix-doc
下列【新】软件包将被安装:
  postfix
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 85 个软件包未被升级。
需要下载 1,152 kB 的归档。
解压缩后会消耗 3,697 kB 的额外空间。
获取:1 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 postfix amd64 3.1.0-3ubuntu0.3 [1,152 kB]
已下载 1,152 kB,耗时 2秒 (476 kB/s)
正在预设定软件包 ...
正在选中未选择的软件包 postfix。
(正在读取数据库 ... 系统当前共安装有 211745 个文件和目录。)
正准备解包 .../postfix_3.1.0-3ubuntu0.3_amd64.deb  ...
正在解包 postfix (3.1.0-3ubuntu0.3) ...
正在处理用于 libc-bin (2.23-0ubuntu11) 的触发器 ...
正在处理用于 ufw (0.35-0ubuntu2) 的触发器 ...
正在处理用于 systemd (229-4ubuntu21.21) 的触发器 ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 postfix (3.1.0-3ubuntu0.3) ...
正在添加组"postfix" (GID 129)...
完成。
正在添加系统用户"postfix" (UID 122)...
正在将新用户"postfix" (UID 122)添加到组"postfix"...
无法创建主目录"/var/spool/postfix"
Creating /etc/postfix/dynamicmaps.cf
正在添加组"postdrop" (GID 130)...
完成。
setting myhostname: GIT
setting alias maps
setting alias database
mailname is not a fully qualified domain name.  Not changing /etc/mailname.
setting destinations: $myhostname, GIT, localhost.localdomain, , localhost
setting relayhost: 
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.

Postfix is now set up with a default configuration.  If you need to make 
changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
正在处理用于 libc-bin (2.23-0ubuntu11) 的触发器 ...
正在处理用于 systemd (229-4ubuntu21.21) 的触发器 ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
正在处理用于 ufw (0.35-0ubuntu2) 的触发器 ...
然后

root@GIT:/home# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Detected operating system as Ubuntu/xenial.
Checking for curl...
Detected curl...
Checking for gpg...
Detected gpg...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.
 

 

root@GIT:/home# sudo apt-get install gitlab-ce
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列【新】软件包将被安装:
  gitlab-ce
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 84 个软件包未被升级。
需要下载 697 MB 的归档。
解压缩后会消耗 1,825 MB 的额外空间。
获取:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 12.3.1-ce.0 [697 MB]
已下载 697 MB,耗时 5分 46秒 (2,011 kB/s)                                                                                                                                                         
正在选中未选择的软件包 gitlab-ce。
(正在读取数据库 ... 系统当前共安装有 211935 个文件和目录。)
正准备解包 .../gitlab-ce_12.3.1-ce.0_amd64.deb  ...
正在解包 gitlab-ce (12.3.1-ce.0) ...
正在设置 gitlab-ce (12.3.1-ce.0) ...
It looks like GitLab has not been configured yet; skipping the upgrade script.

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


     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
root@GIT:/home# curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
root@GIT:/home# vi /etc/apt/sources.list.d/gitlab-ce.list

添加

deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main

https://www.cnblogs.com/ws17345067708/p/10469234.html参考这里

 

service sshd start
service postfix start

 

sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

 

root@GIT:/home# sudo ufw allow 80
这几个必须执行

 

下载


DZ0012+Administrator@DZ0012 MINGW64 /e/hypn/test1/1113
$ git init
Initialized empty Git repository in E:/hypn/test1/1113/.git/

DZ0012+Administrator@DZ0012 MINGW64 /e/hypn/test1/1113 (master)
$ git remote add origin http://192.168.10.80/jason.cai/hps5k.git

DZ0012+Administrator@DZ0012 MINGW64 /e/hypn/test1/1113 (master)
$ git clone http://192.168.10.80/jason.cai/hps5k.git
Cloning into 'hps5k'...
remote: Enumerating objects: 1281, done.
remote: Counting objects: 100% (1281/1281), done.
remote: Compressing objects: 100% (516/516), done.
remote: Total 1281 (delta 925), reused 1065 (delta 761)MiB/s
Receiving objects: 100% (1281/1281), 40.28 MiB | 10.39 MiB/s, done.
Resolving deltas: 100% (925/925), done.

DZ0012+Administrator@DZ0012 MINGW64 /e/hypn/test1/1113 (master)
$ git pull origin master
remote: Enumerating objects: 1220, done.
remote: Counting objects: 100% (1220/1220), done.
remote: Compressing objects: 100% (475/475), done.
Receiving objects:  99% (1208/1220), 39.44 MiB | 11.27 MiB/s   remote: Total 1220 (delta 882), reused 1035 (delta 742)
Receiving objects: 100% (1220/1220), 40.27 MiB | 11.27 MiB/s, done.
Resolving deltas: 100% (882/882), done.
From http://192.168.10.80/jason.cai/hps5k
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master

DZ0012+Administrator@DZ0012 MINGW64 /e/hypn/test1/1113 (master)
$ git log
commit e48b30b212c3411c8ff722fb04bad897c259990f (HEAD -> master, origin/master)
Author: jason.cai <caixjie1012@163.com>
Date:   Wed Nov 6 13:32:57 2019 +0800

    change Ecap startegy to old version
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值