摘要: 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) 编辑