[译]完整的 JMS 2.0 教程

JMS 代表 Java 消息服务,它是 Java 中访问消息中间件服务器的标准。消息传递是在各种应用程序或服务之间交换业务数据的过程。这是一个完整的 JMS 2.0 教程, 其中包含大量代码示例。完整的代码示例可在 GitHub 上找到,请下载并运行示例。本教程使用 Glassfish 开源服务器作为 JMS 提供程序的示例。

More »

GitLab Runner安装和部署

介绍

GitLab Runner 是一个用于在 GitLab CI/CD(持续集成/持续交付)流水线中运行作业(Jobs)的开源工具。它充当了 GitLab CI/CD 系统中的代理,负责接收作业请求、执行作业脚本并报告结果。

More »

Gitlab安装和部署-使用yum源

Gitlab Server 部署

1、环境配置

关闭防火墙、SELinux

开启邮件服务

$ systemctl start  postfix
$ systemctl enable postfix

2、手动安装

1、安装 gitlab 依赖包

centos7:

More »

Git介绍

Git、Github、Gitlab 的区别

Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。

是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。

More »

Git使用

部署Git 服务

创建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 的区别:

More »

Spring Boot集成SpringDoc生成Api文档

以下以 Maven 为例介绍 Spring Boot集成SpringDoc生成Api文档。

  1. 添加依赖
<dependency>
  <groupId>org.springdoc</groupId>
  <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>
  1. 配置 annotationProcessor,实现通过 javadoc 生成文档。

每个 maven 模块都需要配置:

More »

Docker安装和配置

Centos7安装Docker

配置宿主机网卡转发

## 配置网卡转发,看值是否为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

Yum安装配置docker

## 下载阿里源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:

More »