Gitlab安装和部署-使用yum源
Gitlab Server 部署
1、环境配置
关闭防火墙、SELinux
开启邮件服务
关闭防火墙、SELinux
开启邮件服务
Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。
是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。
创建git仓库
git-server上的操作:
[root@localhost ~]# yum install git git-core gitweb -y
[root@localhost ~]# useradd git
[root@localhost ~]# passwd git
[root@localhost ~]# mkdir /git-root/
[root@localhost ~]# cd /git-root/
[root@localhost git-root]# git init --bare shell.git
Initialized empty Git repository in /git-root/shell.git/
[root@localhost git-root]# chown -R git:git shell.git
注意: git init 和 git init –bare 的区别:
macos 系统使用 brew 安装
brew install minikube
查看当前集群列表
以下以 Maven 为例介绍 Spring Boot集成SpringDoc生成Api文档。
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>
每个 maven 模块都需要配置:
## 配置网卡转发,看值是否为1
$ sysctl -a |grep -w net.ipv4.ip_forward
net.ipv4.ip_forward = 1
## 若未配置,需要执行如下
$ cat <<EOF > /etc/sysctl.d/docker.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward=1
EOF
$ sysctl -p /etc/sysctl.d/docker.conf
## 下载阿里源repo文件
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo
$ sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
$ sudo yum clean all && yum makecache
## yum安装
$ sudo yum install -y docker-ce docker-ce-cli
## 设置开机自启
systemctl enable docker
systemctl daemon-reload
## 启动docker
systemctl start docker
## 查看docker信息
docker info
docker version
## docker-client
which docker
## docker daemon
ps aux |grep docker
安装 Compose plugin:
本文翻译自 Docker 官方网站的《Java language-specific guide》文章,并做了一些改动。
Java 入门指南教您如何使用 Docker 创建容器化的 Spring Boot 应用程序。在本模块中,您将学习如何:
有一类新工具可用于将应用程序 docker 化并部署到 Kubernetes,这些工具专门面向开发人员。该类别中的最新工具是 RedHat 的 JKube。
ActiveMQ 是一个实现了 JMS 协议的开源消息中间件,目前它有两种版本:ActiveMQ “Classic” 和 ActiveMQ Artemis。