10 月 24 日晚间,腾讯突然发布了沉寂多年的 QQ for Linux 新版本,引起了一阵欢呼。有网友分析腾讯赶在 1024 这个程序员的节日里重新发版,单纯是娱乐性质,凑凑节日热闹,并且新版本做得也确实不怎么样,对于它后续的跟进研发不必抱有太大希望。下载地址: https://im.qq.com/linuxqq/index.html支持截图,发送图片和文件,还不错啦,相信后面还会更新。引用: https://www.oschina.net/news/110860/is-wechat-for
ElasticSearch判断index不存时创建index
源码:
RestHighLevelClient client = new RestHighLevelClient(
RestClient.builder(new HttpHost("vir-centos7", 9200, "http")));
//
String index = "test";
/
Java生成十六进制sha字符串,网上一大堆不知道什么时候的,都是自己写函数转换,现在我使用的1.8版本中就有Java现成的函数 ,一行代码的事:
DigestUtils.sha512Hex("需要生成sha的字符串");
直接百度搜索 PhantomJS下载地址 竟然搜索不到,记录一下。
PhantomJS官方地址: https://phantomjs.org/
下载地址: https://phantomjs.org/download.html
或者:https://github.com/Medium/phantomjs
Eclipse可以通过很多方式创建Java的工程,如Java、Maven、Gradle等;
我们一般关系的是classpath路径是哪里,毕竟使用很多开源库的默认配置文件都是放在classpath下,如log4j等;
查看方法:
在需要查看的项目使用鼠标右键->Properties
选择 Java Build Path
官方文档:
Java API [7.4] » Document APIs » Update API
https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-docs-update.html
例子:
POST /collect/_doc/123/_update
{
"script" :
使用Eclise开发时出错错误:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
解决方法:
在pom.xml文件中的<dependencies>内添加log4
jues
2019-10-24 16:00:22
数据
284
ElasticSearch Clients各种编程开发语言的文档APIJava REST Client [7.4] — other versionsJava API [7.4] — other versionsJavaScript API [7.x] — other versionsRuby API [7.x] — other versionsGo API.NET API [7.x] — other versionsPHP API [7.2] — other versionsPerl APIPy
jues
2019-10-21 16:11:46
数据
486
最近在学习elasticsearch,没个好工具测试起来很不方便,还是安装elasticsearch-head好了安装方法: https://github.com/mobz/elasticsearch-head 如果没有安装bzip2和nodejs得先安装 bzip2安装yum install bzip2 nodejs安装参考:CentOS7安装Node.jselasticsearch-head安装git clone 
今天发现CentOS系统中没有npm命令,原来是没有安装Node.js解决方法:curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
yum install nodejs参考: https://www.jianshu.com/p/4d3082bc72eb