2018年7月13日
摘要: CentOS7安装Redis,启动时会出现如下图3个警告。 问题1:WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower 阅读全文
posted @ 2018-07-13 15:53 玄同太子 阅读(1283) 评论(0) 推荐(0) 编辑
  2018年4月10日
摘要: package com.zhi.test.util; import java.util.HashMap; import java.util.Map; import org.hibernate.SessionFactory; import org.hibernate.boot.Metadata; import org.hibernate.boot.MetadataSources; import... 阅读全文
posted @ 2018-04-10 10:50 玄同太子 阅读(274) 评论(0) 推荐(0) 编辑
  2018年4月2日
摘要: hibernate依赖jboss-logging,通过它选择对应的对应的日志包,选择的逻辑课查看具体代码org.jboss.logging.LoggerProviders。 先通过系统变量(org.jboss.logging.provider)取日志,如果没有就依次尝试jbss,jdk,log4j2 阅读全文
posted @ 2018-04-02 12:42 玄同太子 阅读(768) 评论(0) 推荐(0) 编辑
  2018年3月6日
摘要: 1、目的 定义一个jndi变量 2、schemas定义 2、web.xml中定义变量 3、Java中使用变量 备注:http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html可查看javaee提供的各个Schema 阅读全文
posted @ 2018-03-06 16:09 玄同太子 阅读(1503) 评论(0) 推荐(0) 编辑
  2018年3月5日
摘要: 1、方法一,通过apache的httpclient 2、方法二,通过JDK自带的HttpURLConnection 阅读全文
posted @ 2018-03-05 11:26 玄同太子 阅读(60816) 评论(1) 推荐(0) 编辑
  2018年3月1日
摘要: 验证环境,OS版本:CentOS-7-x86_64-Minimal-1708;ES版本:elasticsearch-7.4.0。 1、在/etc/init.d/目录创建es文件 文件内容: 2、修改上面文件的权限,执行命令 3、添加和删除服务并设置启动方式(chkconfig具体使用另行百度) 4、 阅读全文
posted @ 2018-03-01 11:00 玄同太子 阅读(4007) 评论(0) 推荐(0) 编辑
  2018年2月28日
摘要: 修改/config/elasticsearch.yml文件,增加如下配置: 浏览器访问http://192.168.17.134:9200/效果: 实际操作过程中,在CentOS环境下,修改elasticsearch.yml文件后出现了一些问题,具体查看:http://www.cnblogs.com 阅读全文
posted @ 2018-02-28 19:47 玄同太子 阅读(4220) 评论(0) 推荐(0) 编辑
摘要: 问题出现环境,OS版本:CentOS-7-x86_64-Minimal-1708;ES版本:elasticsearch-6.2.2。 1、max file descriptors [4096] for elasticsearch process is too low, increase to at 阅读全文
posted @ 2018-02-28 19:35 玄同太子 阅读(112512) 评论(7) 推荐(16) 编辑
摘要: 1、安装JDK,http://www.cnblogs.com/zhi-leaf/p/5996287.html。 2、下载ES:https://www.elastic.co/downloads/elasticsearch,当前最新版本:elasticsearch-6.2.2.tar.gz,使用ftp工 阅读全文
posted @ 2018-02-28 15:42 玄同太子 阅读(2052) 评论(0) 推荐(0) 编辑
  2017年11月7日
摘要: 统一将字符字符集变成utf8_general_ci,已测试。 阅读全文
posted @ 2017-11-07 10:24 玄同太子 阅读(2588) 评论(1) 推荐(0) 编辑