09 2020 档案

摘要:A、B两表,找出ID字段中,存在A表,但是不存在B表的数据。A表总共13w数据,去重后大约3W条数据,B表有2W条数据,且B表的ID字段有索引。 方法一 使用 not in ,容易理解,效率低 ~执行时间为:1.395秒~ 1 select distinct A.ID from A where A. 阅读全文
posted @ 2020-09-25 11:39 simplelifezp 阅读(445) 评论(0) 推荐(0) 编辑
摘要:在根 目录下执行该命令,即可重新生成。 ln -s /var/lib/mysql/mysql.sock 生成的存放的位置 ln -s /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock 赋权限: chown -R root:mysql /usr/l 阅读全文
posted @ 2020-09-25 11:31 simplelifezp 阅读(421) 评论(0) 推荐(0) 编辑
摘要:String url = "jdbc:mysql://*****:3306/wlk?user=root&password=****&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&maxReconnects=5"; S 阅读全文
posted @ 2020-09-25 11:29 simplelifezp 阅读(109) 评论(0) 推荐(0) 编辑
摘要:select date_sub(now(),interval 65 MINUTE); 65分钟之前的 select date_sub(now(),interval 1 hour) 1小时之前的 select date_sub(now(),interval 1 month) 一个月之前的数据 查询两个 阅读全文
posted @ 2020-09-25 11:27 simplelifezp 阅读(427) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/xyj0808xyj/article/details/50558207 语法: 1、备份一个或多个表 mysqldump [options] db_name [table_name……] 2、备份一个或多个库 mysqldump [options] –dat 阅读全文
posted @ 2020-09-25 11:06 simplelifezp 阅读(251) 评论(0) 推荐(0) 编辑
摘要:权限问题,授权 给 root 所有sql 权限 grant all privileges on *.* to root@"%" identified by "你的密码"; flush privileges; 方法二:通过登录mysql系统,# mysql -uroot -pEnter passwor 阅读全文
posted @ 2020-09-25 11:05 simplelifezp 阅读(374) 评论(0) 推荐(0) 编辑
摘要:public class HttpRequestDeviceUtils { /** Wap网关baiVia头信du息中特有的描述信息 */ private static String[] mobileGateWayHeaders = new String[] { "ZXWAP", // 中兴提供的w 阅读全文
posted @ 2020-09-25 11:03 simplelifezp 阅读(379) 评论(0) 推荐(0) 编辑
摘要:自动挂载数据盘您可以参考下文档https://help.aliyun.com/document_detail/25426.html?spm=5176.11065259.1996646101.searchclickresult.73a4898a9a8C8K 文档中的6/7/8步是实现配置fstab文件 阅读全文
posted @ 2020-09-25 10:49 simplelifezp 阅读(126) 评论(0) 推荐(0) 编辑
摘要:Linux的Shell种类众多,常见的有:Bourne Shell(/usr/bin/sh或/bin/sh)、Bourne Again Shell(/bin/bash)、C Shell(/usr/bin/csh)、K Shell(/usr/bin/ksh)、Shell for Root(/sbin/ 阅读全文
posted @ 2020-09-25 10:13 simplelifezp 阅读(659) 评论(0) 推荐(0) 编辑
摘要:#!/bin/shcd /d/compareMYSQL="mysql -h -uroot -p**** --default-character-set=utf8 -A";sql="select * from contrast.dx_record limit 0,10 ";$MYSQL -e "$sq 阅读全文
posted @ 2020-09-25 10:12 simplelifezp 阅读(588) 评论(0) 推荐(0) 编辑
摘要:vi /etc/sysconfig/i18n LANG="zh_CN.GB18030"LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"SYSFONT="la 阅读全文
posted @ 2020-09-25 10:11 simplelifezp 阅读(904) 评论(0) 推荐(0) 编辑
摘要:一天,新项目发布上去,却是莫名其妙的404错误。还以为项目本身有问题,然后发现在本地一切正常。后来以为是服务器的缓存什么的导致失败,那就停止tomcat清work清temp再启动,结果原来可以访问的项目也突然不能访问了,网页地址栏一直在转圈。还以为是原来的项目文件夹和对应的war包不一致导致的,删了 阅读全文
posted @ 2020-09-25 07:48 simplelifezp 阅读(62) 评论(0) 推荐(0) 编辑
摘要:1:先安装java 2:配置环境 export JAVA_HOME=/usr/share/jdk1.6.0_14 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tool 阅读全文
posted @ 2020-09-25 07:47 simplelifezp 阅读(187) 评论(0) 推荐(0) 编辑
摘要:1、查看所有定时任务:命令:“crontab -l” 数字意思解释如下:从左到右,依次是:分、时、日、月、星期。 2、编辑定时执行计划:命令:"crontab -e" ,e表示edit修改的意思。 3、修改脚本路径,脚本的具体执行时间等。如果是每隔10分钟执行一次命令是:“*/10 * * * * 阅读全文
posted @ 2020-09-25 07:45 simplelifezp 阅读(88) 评论(0) 推荐(0) 编辑
摘要:这几天发现linux系统内存一直涨,即使把apache和mysql关闭了,内存也不释放,可以使用以下脚本来释放内存: 脚本内容: #! /bin/bash # cache释放: # To free pagecache: sync sync #echo 1 > /proc/sys/vm/drop_ca 阅读全文
posted @ 2020-09-25 07:44 simplelifezp 阅读(230) 评论(0) 推荐(0) 编辑
摘要:查看内存使用情况 1:$ free -m 2:运行sync将dirty的内容写回硬盘 $sync 3:通过修改proc系统的drop_caches清理free的cache $echo 3 > /proc/sys/vm/drop_caches 阅读全文
posted @ 2020-09-25 07:43 simplelifezp 阅读(148) 评论(0) 推荐(0) 编辑
摘要:centos查看实时网络带宽占用情况方法 Linux中查看网卡流量工具有iptraf、iftop以及nethogs等,iftop可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等。centos安装iftop的命令如下: yum install iftop -y 复制代码 常用参 阅读全文
posted @ 2020-09-25 07:40 simplelifezp 阅读(487) 评论(0) 推荐(0) 编辑
摘要:linux系统root密码忘了怎么办 三种方法快速找回root密码 linux root密码找回方法一 第1步:在系统进入单用户状态,直接用passwd root去更改。 第2步:用安装光盘引导系统,进行linux rescue状态,将原来/分区挂接上来,作法如下: cd /mnt mkdir hd 阅读全文
posted @ 2020-09-25 07:37 simplelifezp 阅读(10994) 评论(0) 推荐(0) 编辑
摘要:1:删除单个文件testFileCp.txt rm -f testFileCp.txt 2:删除subtestcp文件夹下的所有文件 rm -fr /test/subtestcp 3:移动/test/subtest下的单个文件testFile.txt到/test/subtestcp下 mv -f / 阅读全文
posted @ 2020-09-25 07:36 simplelifezp 阅读(378) 评论(0) 推荐(0) 编辑
摘要:首先,命令 df -h 查看使用到的磁盘。一般分为数据盘和系统盘。 在目录下面创建需要存放数据盘的文件夹,命令: mkdir /xx 挂载命令: mount /dev/vdb1 /挂载的目录 要卸载的目录:eg :/zp 卸载命令:umount /dev/vdb1 /zp或者umount 查看正在 阅读全文
posted @ 2020-09-25 07:34 simplelifezp 阅读(711) 评论(0) 推荐(0) 编辑
摘要:首先查看Linux安装的版本,64的还是32的!查看Linux版本:[root@localhost ~]# getconf LONG_BIT 1、Linux中可以用以下命令来下载安装包(官网找):64位下载:wget https://excellmedia.dl.sourceforge.net/pr 阅读全文
posted @ 2020-09-25 07:31 simplelifezp 阅读(2703) 评论(0) 推荐(0) 编辑
摘要:Linux yum安装MySQL5.7 一、安装配置MySQL的yum源 1 2 3 4 5 6 7 8 9 10 # 安装MySQL的yum源,下面是RHEL6系列的下载地址 rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6 阅读全文
posted @ 2020-09-25 07:30 simplelifezp 阅读(385) 评论(0) 推荐(0) 编辑
摘要:Linux下Redis的安装和部署 安装: 1.获取redis资源 wget http://download.redis.io/releases/redis-4.0.8.tar.gz 2.解压 tar xzvf redis-4.0.8.tar.gz 3.安装 cd redis-4.0.8 make 阅读全文
posted @ 2020-09-25 07:26 simplelifezp 阅读(169) 评论(0) 推荐(0) 编辑
摘要:REDIS服务器搭建 阅读目录 系统环境 安装步骤 注意事项 参考资料 回到顶部 系统环境 操作系统:CentOS 6.9 redis版本:redis-4.0.2 回到顶部 安装步骤 1,安装预环境 运行以下命令安装预环境。 [root@redis02 redis-4.0.2]# yum -y in 阅读全文
posted @ 2020-09-25 07:24 simplelifezp 阅读(246) 评论(0) 推荐(0) 编辑
摘要:【Linux】CentOS7下安装JDK详细过程 Linux上一般会安装Open JDK,关于OpenJDK和JDK的区别:http://www.cnblogs.com/sxdcgaq8080/p/7487369.html 下面开始安装步骤: 第一步 第一步 卸载系统自带的OpenJDK以及相关的j 阅读全文
posted @ 2020-09-25 07:22 simplelifezp 阅读(99) 评论(0) 推荐(0) 编辑
摘要:【一】 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 核心标签 <c:if <c:choose <c:when <c:otherwise <c:url 【二】 <%@ taglib uri="http://java. 阅读全文
posted @ 2020-09-24 18:07 simplelifezp 阅读(290) 评论(0) 推荐(0) 编辑
摘要:这里是修真院前端小课堂,每篇分享文从【背景介绍】【知识剖析】【常见问题】【解决方案】【编码实战】【扩展思考】【更多讨论】【参考文献】八个方面深度解析前端知识/技能,本篇分享的是:【px、em、rem、%、vw、wh、vm等单位有什么区别?】 1.背景介绍传统的项目开发中,我们只会用到px、%、em这 阅读全文
posted @ 2020-09-24 18:02 simplelifezp 阅读(1035) 评论(0) 推荐(0) 编辑
摘要:1、使用add的时候 Calendar calendar=Calendar.getInstance(); calendar.add(Calendar.MONTH,-1); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); St 阅读全文
posted @ 2020-09-24 17:41 simplelifezp 阅读(199) 评论(0) 推荐(0) 编辑
摘要:import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors; int each_thread = 5000;#每个线程处理数据数int count = 500;#总数据量 ExecutorServ 阅读全文
posted @ 2020-09-24 17:23 simplelifezp 阅读(166) 评论(0) 推荐(0) 编辑
摘要:在开发web程序的时候,有时我们需要得到用户是从什么页面连过来的,这就用到了referer。 它是http协议,所以任何能开发web程序的语言都可以实现,比如jsp中是: request.getHeader("referer"); php是$_SERVER['HTTP_REFERER']。其他的我就 阅读全文
posted @ 2020-09-24 17:10 simplelifezp 阅读(163) 评论(0) 推荐(0) 编辑
摘要:原博客 (1)修改pom.xml文件,引入jar包 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= 阅读全文
posted @ 2020-09-24 17:09 simplelifezp 阅读(157) 评论(0) 推荐(0) 编辑

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