摘要: 1 查看防火墙状态 firewall-cmd --state 或者 systemctl status firewalld 示例: [root@localhost ~]# systemctl status firewalld ● firewalld.service - firewalld - dyna 阅读全文
posted @ 2022-03-17 19:38 明明改变世界 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 常用操作 1 服务器型号序列号 dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial" 2 主板型号 dmidecode |grep -A16 "System Information$" 3 查看BIOS 阅读全文
posted @ 2022-03-17 19:25 明明改变世界 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 一. 下载mha4mysql 的manager与node源码,然后进行编译安装。 下载地址: mha4mysql-node https://github.com/yoshinorim/mha4mysql-node mha4mysql-manager https://github.com/yoshin 阅读全文
posted @ 2022-03-17 19:06 明明改变世界 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 1 查看Linux版本 1.1.1 系统版本 [root@znix ~]# cat /etc/redhat-release CentOS release 6.9 (Final) 1.1.2 内核版本 [root@znix ~]# uname -r 2.6.32-696.el6.x86_64 1.1. 阅读全文
posted @ 2022-03-17 13:33 明明改变世界 阅读(217) 评论(0) 推荐(0) 编辑
摘要: cat :查看 cat [-AbeEnstTuv] [--help] [--version] fileName 常用参数: -n :由 1 开始对所有输出的行数编号 -b :和 -n 相似,对于空白行不编号 示例: 将test1中的内容加上行号输入到test2文件中: cat -n test1 > 阅读全文
posted @ 2022-03-17 13:21 明明改变世界 阅读(74) 评论(0) 推荐(0) 编辑
摘要: docker run创建Docker容器时,可以用–net选项指定容器的网络模式,Docker有以下4种网络模式: bridge模式:使用–net =bridge指定: host模式:使用–net =host指定; none模式:使用–net =none指定; container模式:使用–net 阅读全文
posted @ 2022-03-17 13:04 明明改变世界 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1、配置 /etc/ansible/hosts 文件,添加被管控主机ip #vim /etc/ansible/hosts 文件末尾添加组[group1]和被管控主机的IP [group1] 192.168.31.102 192.168.31.103 2. 修改配置文件 #vim /etc/ansib 阅读全文
posted @ 2022-03-16 22:25 明明改变世界 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 安装ansible: 查看可用的ansible版本: yum list|grep ansible 方法一: 系统可用ansible版本太低,安装epel源: yum install epel-release -y 从epel源安装高版本 ansible: yum install ansible -y 阅读全文
posted @ 2022-03-16 21:54 明明改变世界 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 一. 硬件配置: 1 GB的RAM 50 GB的驱动器空间 二. 系统环境: [root@Jenkins ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@Jenkins ~]# uname -r 3.10. 阅读全文
posted @ 2022-03-16 19:18 明明改变世界 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1. 进入本地仓库访问位置之后执行命令 1) 远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ g 阅读全文
posted @ 2022-03-16 17:40 明明改变世界 阅读(585) 评论(0) 推荐(0) 编辑