Loading

摘要: 准备前的工作: 1. 文章使用的系统为: centos7 2. 关闭selinux [root@localhost ~]# setenforce 0 [root@localhost ~]# vim /etc/selinux/config 将SELINUX=enforcing改为SELINUX=dis 阅读全文
posted @ 2021-08-17 10:35 bathing 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Docker创建容器时默认采用bridge网络,自行分配ip,不允许自己指定。 在实际部署中,我们需要指定容器ip,不允许其自行分配ip,尤其是搭建集群时,固定ip是必须的。 我们可以创建自己的bridge网络 : mynet,创建容器的时候指定网络为mynet并指定ip即可。 1. 查看网路模式 阅读全文
posted @ 2021-08-16 14:13 bathing 阅读(1558) 评论(0) 推荐(0) 编辑
摘要: 错误提示: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br 阅读全文
posted @ 2021-08-16 14:12 bathing 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # # Author:Bathing # Function:This script will be used for mysql backups,It was created by Bathing. # Date:2021-07-22 # QQinfo:576590916 # 阅读全文
posted @ 2021-08-05 10:48 bathing 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 错误: Couldn't find index page for 'meld3' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/sim 阅读全文
posted @ 2021-08-05 10:29 bathing 阅读(248) 评论(0) 推荐(0) 编辑
摘要: MySQL's validate_password plugin is installed by default. This will require that passwords contain at least one upper case letter, one lower case lett 阅读全文
posted @ 2021-08-05 10:28 bathing 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1.前言 supervisor是一个进程管理工具,当进程中断的时候supervisor能自动重新启动它,可以运行再各类的unix机器上,supervisor就是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启 2.安装su 阅读全文
posted @ 2021-08-05 10:26 bathing 阅读(347) 评论(0) 推荐(0) 编辑
摘要: vim my.cnf [mysqld] 下面添加 sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION explicit_defaults_for_time 阅读全文
posted @ 2021-07-23 14:36 bathing 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 常用命令 # 输出格式 # 时间戳 协议 源地址. 源端口 > 目的地址. 目的端口 网络包详细信息 # -i eth0 只抓取 eth0 网卡,-n 不解析协议名和主机名 # tcp port 80 表示只抓取 tcp 协议并且端口号为 80 的网络帧 tcpdump -i eth0 -n tcp 阅读全文
posted @ 2021-07-23 14:36 bathing 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 查看当前各种TCP连接状态 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 查看80端口连接数 netstat -tan | grep "ESTABLISHED" | grep ":80" | wc -l 查看 阅读全文
posted @ 2021-07-23 14:36 bathing 阅读(340) 评论(0) 推荐(0) 编辑
Live2D