05 2020 档案

摘要:目标:搭建两台MySQL服务器,一台作为主服务器,一台作为从服务器,实现主从复制 环境:虚拟机 主数据库:192.168.211.101 从数据库:192.168.211.102 MySQL 安装可参考:逛一逛 一):主库配置步骤 1、配置主库:授权给从数据库服务器 mysql>GRANT REPL 阅读全文
posted @ 2020-05-19 17:50 coding++ 阅读(241) 评论(0) 推荐(0) 编辑
摘要:第一步: 1):下载mysql安装包:这里选择下载版本 5.6.33,通用版,linux下64位 http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz 第二步: 2):卸载老版本M 阅读全文
posted @ 2020-05-19 16:26 coding++ 阅读(414) 评论(0) 推荐(0) 编辑
摘要:一):innodb_flush_log_at_trx_commit 参数解释: 1):参数解释 0:log buffer将每秒一次地写入log file中,并且log file的flush(刷到磁盘)操作同时进行。该模式下在事务提交的时候,不会主动触发写入磁盘的操作。 1:每次事务提交时MySQL都 阅读全文
posted @ 2020-05-19 14:35 coding++ 阅读(139) 评论(0) 推荐(0) 编辑
摘要:1、判断一个变量是否为空 的方法 1、变量通过" "引号引起来 #!/bin/sh para1= if [ ! -n "$para1" ]; then echo "IS NULL" else echo "NOT NULL" fi 2、直接通过变量判断 #!/bin/sh para1= if [ ! 阅读全文
posted @ 2020-05-19 11:08 coding++ 阅读(276) 评论(0) 推荐(0) 编辑
摘要:一、iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 阅读全文
posted @ 2020-05-18 18:18 coding++ 阅读(490) 评论(0) 推荐(0) 编辑
摘要:1):获取指定元素值 package com.mmq.regex; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; / 阅读全文
posted @ 2020-05-17 14:38 coding++ 阅读(409) 评论(0) 推荐(0) 编辑
摘要:1):查询重复数据 db.getCollection('users').aggregate([ { $group: { _id : '$goodsId', count: { $sum : 1 } } }, { $match: { count: { $gt : 1} } } ]) 2):Mongodb 阅读全文
posted @ 2020-05-15 21:57 coding++ 阅读(236) 评论(0) 推荐(0) 编辑
摘要:引文: TP-LINK路由器端口映射全套教程(亲测有效) 阅读全文
posted @ 2020-05-01 21:31 coding++ 阅读(411) 评论(0) 推荐(0) 编辑
摘要:1、开源版安装包下载 地址一:百度云下载 10.0 提取码:2dyg 地址二:官方下载 2、直接解压安装包到/opt目录下 注意:这里我安装的是Linux一键安装包官方给出的方法就是直接解压到/opt/目录下直接启动就行,若解压到其他目录下可能目录权限可能出现问题,直接给777权限都不行, 所以我们 阅读全文
posted @ 2020-05-01 13:46 coding++ 阅读(532) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示