搭建一台纯净的docker服务器&一台纯净的rabbitMq服务器

一、需要一台纯净的Linux

链接:https://pan.baidu.com/s/1acFS_hJ9VVMW5R9ydejzxg
提取码:4f2h
–来自百度网盘超级会员V1的分享

二、对Linux修改

1.MobaXterm_Personal_21.1.exe连接虚拟机

  1. ip addr查看linux地址
  2. 打开软件以上是连接步骤

2.Linux修改配置

  • 设置了清华的yum安装源

https://mirrors.tuna.tsinghua.edu.cn/help/centos/
清华大学的yum安装源

  • 安装了三个工具: python、pip、ansible
  • 两个脚本文件,用来设置 ip 地址
    • ip-dhcp: 自动获取ip
    • ip-static: 设置固定ip(修改为192.168.200.129)

链接:https://pan.baidu.com/s/1yTGXIRcOD3vo237Hn4upJw
提取码:b5li
–来自百度网盘超级会员V1的分享

3.配置docker服务器

  • centos-7 关机: shutdown -h now
  • 克隆 centos-7: docker-base

前三步点下一步,然后选择克隆路径

  • 用 moboxterm 连接服务器,上传离线安装文件
    • 将docker-install 文件夹 上传到 /root/ 目录

链接:https://pan.baidu.com/s/1WNX0KwbehyrylivO_vQagA
提取码:nx4c
–来自百度网盘超级会员V1的分享

  • 执行安装:
 # 进入 docker-install 文件夹
cd docker-install

# 为 docker-install 添加执行权限
chmod +x install.sh

# 安装
./install.sh -f docker-20.10.6.tgz
  • 镜像加速(直接复制使用)
cat <<EOF > /etc/docker/daemon.json
{
  "registry-mirrors": [
    "https://docker.mirrors.ustc.edu.cn",
    "http://hub-mirror.c.163.com"
  ],
  "max-concurrent-downloads": 10,
  "log-driver": "json-file",
  "log-level": "warn",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
    },
  "data-root": "/var/lib/docker"
}
EOF
  • 之后重新启动服务:
# 重新加载docker配置
sudo systemctl daemon-reload

#重启docker服务
sudo systemctl restart docker
  • 确认安装结果
docker info
  • 关闭防火墙
systemctl stop firewalld

systemctl disable firewalld
  • 关机
  shutdown -h now

4.Docker运行Rabbitmq服务:

  • 克隆 docker base: rabbitmq
  • 设置固定ip:
./ip-static
ip: 192.168.64.140

ifconfig
# 如果设置ip出错,参考上面 ip 设置,执行两条命令
  • 上传文件到 /root/
    rabbit-image.gz

链接:https://pan.baidu.com/s/1LDfUeAhSB2EVZnS-bWktZA
提取码:lgol
–来自百度网盘超级会员V1的分享

  • 导入镜像:
docker load -i rabbit-image.gz
docker images
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MobaXterm一个包含很多功能的小工具,personal版本已经需要收费下载,此版本为之前没有收费前下载的,功能还是比较齐全。 MobaXterm X server and SSH client MobaXterm is your ultimate toolbox for remote computing. In a single Windows application, it provides loads of functions that are tailored for programmers, webmasters, IT administrators and pretty much all users who need to handle their remote jobs in a more simple fashion. MobaXterm provides all the important remote network tools (SSH, X11, RDP, VNC, FTP, MOSH, ...) and Unix commands (bash, ls, cat, sed, grep, awk, rsync, ...) to Windows desktop, in a single portable exe file which works out of the box. More info on supported network protocols There are many advantages of having an All-In-One network application for your remote tasks, e.g. when you use SSH to connect to a remote server, a graphical SFTP browser will automatically pop up in order to directly edit your remote files. Your remote applications will also display seamlessly on your Windows desktop using the embedded X server. See demo You can download and use MobaXterm Home Edition for free. If you want to use it inside your company, you should consider subscribing to MobaXterm Professional Edition: this will give you access to much more features and the "Customizer" software. Features comparison When developing MobaXterm, we focused on a simple aim: proposing an intuitive user interface in order for you to efficiently access remote servers through different networks or systems. Screenshots MobaXterm is being actively developed and frequently updated by Mobatek.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值