zoukankan      html  css  js  c++  java
  • 从零开始一步一步搭建Ubuntu Server服务器、修改数据源、安装Docker、配置镜像加速器、Compose部署Gitlab服务

    场景

    最终目的是使用Docker Compose部署一个Gitlab服务。

    效果

    注:

    博客:
    https://blog.csdn.net/badao_liumang_qizhi
    关注公众号
    霸道的程序猿
    获取编程相关电子书、教程推送与免费下载。

    实现

    步骤一:

    Linux-安装 Ubuntu Server 16.04 X64(图文教程详细版)
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/93790806

    步骤二:

    Linux-用户和组管理以及设置允许远程登录Root
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/95393577

    步骤三:

    UbuntuServer16.04LTS版怎样修改数据源为国内数据源
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/97699304

    注:在此过程中安装的是Ubuntu Server 16.04 LTS版的的清华的数据源

    # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    
    # 预发布软件源,不建议启用
    # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

    如果在配置好之后执行apt-get update时一直不动,可能是数据源出现问题,那么就将数据源改为其他数据源,

    原理一样,比如中科大的数据源

    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

    步骤四:

    Ubuntu Server 16.04 LTS上安装Docker(使用脚本的方式)
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/98113544

    步骤五:

    Ubuntu Server 16.04 LTS上给Docker配置镜像加速器
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/98328451

    步骤六:

    Docker-Compose简介与Ubuntu Server 上安装Compose
    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100902301

    在进行下一步骤前,记得要先克隆一份虚拟机,然后将部署Gitlab的虚拟机的内存提升到至少2G以上。

    步骤七:

    Docker Compose部署GitLab服务,搭建自己的代码托管平台(图文教程)

    https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/101039801

    注:

    在步骤一中所需的ubuntu-16.04-server-amd64.iso以及docker-compose-Linux-x86_64资料 ,

    关注公众号:

    霸道的程序猿

    回复:ubuntu

    免费获取。

  • 相关阅读:
    代码面试最常用的10大算法
    ant google compiler 压缩
    美工资源
    面试题
    validate表单验证插件
    laypage分页
    layer弹出框小结
    Thymeleaf
    webApp开发
    grunt自动化构建工具
  • 原文地址:https://www.cnblogs.com/badaoliumangqizhi/p/11559763.html
Copyright © 2011-2022 走看看