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

2024-09-04 00:38

本文主要是介绍鹏程万里------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
 

这篇关于鹏程万里------ubuntu16.04安装gitlab的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1134509

相关文章

Python使用国内镜像加速pip安装的方法讲解

《Python使用国内镜像加速pip安装的方法讲解》在Python开发中,pip是一个非常重要的工具,用于安装和管理Python的第三方库,然而,在国内使用pip安装依赖时,往往会因为网络问题而导致速... 目录一、pip 工具简介1. 什么是 pip?2. 什么是 -i 参数?二、国内镜像源的选择三、如何

Python安装时常见报错以及解决方案

《Python安装时常见报错以及解决方案》:本文主要介绍在安装Python、配置环境变量、使用pip以及运行Python脚本时常见的错误及其解决方案,文中介绍的非常详细,需要的朋友可以参考下... 目录一、安装 python 时常见报错及解决方案(一)安装包下载失败(二)权限不足二、配置环境变量时常见报错及

MySQL8.2.0安装教程分享

《MySQL8.2.0安装教程分享》这篇文章详细介绍了如何在Windows系统上安装MySQL数据库软件,包括下载、安装、配置和设置环境变量的步骤... 目录mysql的安装图文1.python访问网址2javascript.点击3.进入Downloads向下滑动4.选择Community Server5.

CentOS系统Maven安装教程分享

《CentOS系统Maven安装教程分享》本文介绍了如何在CentOS系统中安装Maven,并提供了一个简单的实际应用案例,安装Maven需要先安装Java和设置环境变量,Maven可以自动管理项目的... 目录准备工作下载并安装Maven常见问题及解决方法实际应用案例总结Maven是一个流行的项目管理工具

MySql9.1.0安装详细教程(最新推荐)

《MySql9.1.0安装详细教程(最新推荐)》MySQL是一个流行的关系型数据库管理系统,支持多线程和多种数据库连接途径,能够处理上千万条记录的大型数据库,本文介绍MySql9.1.0安装详细教程,... 目录mysql介绍:一、下载 Mysql 安装文件二、Mysql 安装教程三、环境配置1.右击此电脑

在 Windows 上安装 DeepSeek 的完整指南(最新推荐)

《在Windows上安装DeepSeek的完整指南(最新推荐)》在Windows上安装DeepSeek的完整指南,包括下载和安装Ollama、下载DeepSeekRXNUMX模型、运行Deep... 目录在www.chinasem.cn Windows 上安装 DeepSeek 的完整指南步骤 1:下载并安装

python管理工具之conda安装部署及使用详解

《python管理工具之conda安装部署及使用详解》这篇文章详细介绍了如何安装和使用conda来管理Python环境,它涵盖了从安装部署、镜像源配置到具体的conda使用方法,包括创建、激活、安装包... 目录pytpshheraerUhon管理工具:conda部署+使用一、安装部署1、 下载2、 安装3

龙蜥操作系统Anolis OS-23.x安装配置图解教程(保姆级)

《龙蜥操作系统AnolisOS-23.x安装配置图解教程(保姆级)》:本文主要介绍了安装和配置AnolisOS23.2系统,包括分区、软件选择、设置root密码、网络配置、主机名设置和禁用SELinux的步骤,详细内容请阅读本文,希望能对你有所帮助... ‌AnolisOS‌是由阿里云推出的开源操作系统,旨

Ubuntu系统怎么安装Warp? 新一代AI 终端神器安装使用方法

《Ubuntu系统怎么安装Warp?新一代AI终端神器安装使用方法》Warp是一款使用Rust开发的现代化AI终端工具,该怎么再Ubuntu系统中安装使用呢?下面我们就来看看详细教程... Warp Terminal 是一款使用 Rust 开发的现代化「AI 终端」工具。最初它只支持 MACOS,但在 20

mysql-8.0.30压缩包版安装和配置MySQL环境过程

《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d