07 2021 档案
摘要:现在很多软用已经打包好镜像,但是很常见的命令都可能没有。出问题了,有时候排查起来很困难。这里介绍一种使用宿主机的命令在容器中使用。容器运行相当于宿主机的进程。在主机找到容器的pid,然后进入该命名空间。就可以使用宿主机的命名空间。 创建测试容器 测试两个容器的连通性 容器使用宿主机命令 找到对应的容
阅读全文
摘要:两台nginx操作 关闭防火墙及selinux systemctl stop firewalld setenforce 0 创建ARP冲突检测脚本 vi /etc/init.d/realserver #!/bin/bash # chkconfig: 2345 15 85 # description:
阅读全文
摘要:环境说明 | 主机名 | IP | 系统 | 用途 | | | | | | | harbor01.ecloud.com | 192.168.32.137 | CentOS 7.6 | 安装harbor仓库、HTTPS | | harbor02.ecloud.com | 192.168.32.145
阅读全文
摘要:批量创建openstack云主机 shell cat createServer.sh /bin/bash help() { cat server.. Options: u, user data Use a custom template to create a cloud host. Note: T
阅读全文
摘要:```shell !/usr/bin/bash 这个是linux的捕捉信息,这句话的意思是有这几个捕捉信号了就什么都不做 trap "" HUP INT host server master=172.20.0.21 node01=172.20.0.7 node02=172.20.0.13 node0
阅读全文
摘要:先使用管理员用户做前期的准备,后面都是使用ceph用户进行安装。 设置主机名 设置主机名映射 关闭防火墙 关闭selinux 安装ntp服务同步 shell yum install y ntp vi /etc/ntp.conf 注释 的几行,在下面添加 。 systemctl enable ntpd
阅读全文
摘要:先使用管理员用户做前期的准备,后面都是使用ceph用户进行安装。 设置主机名 设置主机名映射 关闭防火墙 关闭selinux 安装ntp服务同步 shell yum install y ntp vi /etc/ntp.conf 注释 的几行,在下面添加 。 systemctl enable ntpd
阅读全文
摘要:#!/bin/bash source ~/admin-openrc UserHelp() { cat <<EOF # Disable the security rules and ports of the cloud host Usage: ./disablePort.sh <network> se
阅读全文