- 博客(45)
- 资源 (2)
- 收藏
- 关注
转载 新版eclipse创建maven项目步骤
2、打开 Window-》preferences-》maven-》user settings-》,可以看到右侧user settings下默认的maven配置文件读取路径,但是该目录下默认是没有settings.xml文件的,需要复制一份到该目录(可以从网上下载或从Windows版maven conf目录下复制),3、项目src-》main-》webapp 下默认没有创建web.xml,右键项目,按下图,操作后webapp下多了WEB-INF和web.xml;10、新窗口按下图,选择-》Next;
2025-03-08 14:44:19
99
原创 分片掉线恢复
curl -XPOST '192.168.1.101:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'{ "commands" : [ { "allocate_replica" : { "index" : "fragment", "shard" : 6, "node" : "node-107-0" ...
2022-02-28 00:13:51
262
转载 Error mounting /dev/sda4 , Metadata kept in Windows cache, refused to mount的解决方法
今天尝试mount读取Windows盘上的数据时,遇到了这个错误:root@pityhero:/# mount -o rw /dev/sda4 /mntThe disk contains an unclean file system (0, 0).Metadata kept in Windows cache, refused to mount.Falling back to read-only mount because the NTFS partition is in anunsafe st
2022-02-15 23:25:12
1798
原创 centos8安装中文字符集
yum install glibc-common yum install -y langpacks-zh_CN vim /etc/locale.conf # 修改这个文件 LANG=zh_CN.utf8 source /etc/locale.conf
2021-12-10 02:43:10
1231
转载 CentOS安装MySQL
(34条消息) CentOS7下使用YUM安装MySQL5.6_pengjunlee的博客-优快云博客_centos7安装mysql5.6
2021-08-05 19:53:16
178
原创 Centos多网卡设置网卡上网的优先级
踩坑:网卡1连内网,网卡2连外网,配置没问题,死活上不了网,后面把网卡1关了,能上网了,初步怀疑是优先级的问题。在机房割接前,一直口1连的外网,所以也没存在过问题。解决:设置路由的优先级。通过“IPV4_ROUTE_METRIC=0” 设置优先级,数值越低优先级越高cat /etc/sysconfig/network-script/ifcfg-em2IPADDR=NETMASK=GATEWAY=DNS1=IPV4_ROUTE_METRIC=0...
2021-08-04 12:50:45
2359
原创 环境安装
https://cloud.tencent.com/document/product/213/38838为已安装的MySQL8设置不区分大小写1、停止MySQL2、删除数据目录,即删除 /var/lib/mysql 目录、3、在MySQL配置文件( /etc/my.cnf )中添加 lower_case_table_names=14、启动 MySQL...
2021-03-18 18:21:11
114
原创 最新版本库设计
curl -XPUT 127.0.0.1:9200/category?pretty -d '{ "settings" : { "index" : { "number_of_shards" : 1, "number_of_replicas" : 0 } }, "mappings" : { "literature" : { "properties"...
2021-02-21 15:10:13
176
原创 es表设计
curl -XPUT 127.0.0.1:9200/l?pretty -d '{ "settings" : { "index" : { "number_of_shards" : 4 , "number_of_replicas" : 0 }, "analysis": { ...
2019-10-20 09:19:35
500
转载 Linux CentOS 7 安装字体库 & 中文字体
前言报表中发现有中文乱码和中文字体不整齐(重叠)的情况,首先考虑的就是操作系统是否有中文字体,在CentOS7中发现输入命令查看字体列表是提示命令无效:如上图可以看出,不仅没有中文字体,连字体库都没有,那么接下来就记录一下在Linux CentOS 7中如何安装字体库以及中文字体。 安装字体库在CentOS 4.x开始用fontconfig来安装字体库,所以输入以下命令即可:...
2019-07-21 10:42:53
422
转载 CentOS 7 为firewalld添加开放端口及相关资料
文章来源:https://www.cnblogs.com/hubing/p/6058932.html1、运行、停止、禁用firewalld启动:# systemctl start firewalld查看状态:# systemctl status firewalld或者firewall-cmd --state停止:# systemctl disable firewalld...
2019-02-28 17:15:01
211
转载 firewalld对指定IP开放指定端口的配置
文章来源:https://www.centos.bz/2018/08/firewalld%e5%af%b9%e6%8c%87%e5%ae%9aip%e5%bc%80%e6%94%be%e6%8c%87%e5%ae%9a%e7%ab%af%e5%8f%a3%e7%9a%84%e9%85%8d%e7%bd%ae/1.打开firewalld防火墙systemctl start firewa...
2019-02-28 17:09:55
11274
转载 centos7 firewalld基本配置方法,集合和ipset配置
文章来源:https://blog.51cto.com/bjdongpengfei/2160221说明:此规范分为两部分:一是,常规配置方法;二是集合配置方法常规的配置方法是指对于端口,服务及源地址的限制方法集合配置方法是针对于源地址和端口组合限制,但源地址是一个IP地址集合,此集合中可以任意添加IP地址及网段一、常规配置方法:1、端口限制1)放开UDP 161/162端口...
2019-02-28 17:07:58
3662
原创 centos防火墙firewalld的一些命令(自用)
启动: systemctl start firewalld查看状态: systemctl status firewalld停止: systemctl disable firewalld禁用: systemctl stop firewalld永久开放一个端口firewall-cmd --zone=public --add-port=80/tcp --permanent (--p...
2019-02-28 17:07:05
223
原创 自用服务器防火墙配置,代码自己用,对你没用,请忽略
放行端口 80,8080,8889(降),8888(本地网络服务器),9999(网络查)firewall-cmd --zone=public --add-port=80/tcp --permanentfirewall-cmd --zone=public --add-port=8080/tcp --permanentfirewall-cmd --zone=public --add-port=8...
2019-02-28 17:04:09
663
原创 查看linux物理内存数量及大小
dmidecode -t memory | grep Size: | grep -v "No Module Installed"
2019-02-14 02:42:34
10363
原创 ssh连接慢问题修复
修改以下两个参数vi /etc/ssh/sshd_configUseDNS noGSSAPIAuthentication no重启systemctl restart sshd
2019-02-14 02:42:03
268
原创 centos开机启动文件
/etc/rc.d/rc.local /etc/init.d/mysqld start/etc/init.d/nginx start/etc/init.d/php-fpm start/etc/init.d/vsftpd start
2018-10-13 18:26:10
2122
原创 代码自留地:小文件合并成大文件,需要配置BytesZip使用,java
public class FileZip implements Serializable { String fileName = null; byte [] zipBytes = null; public FileZip(){ } public FileZip(String fileName,byte [] zipBytes){ this.fileName = fil...
2018-09-19 20:28:48
549
原创 centos进入救援模式,修复fstab错误
一般fstab文件编辑之后,将硬盘拔出没及时变更/etc/fstab文件,再重启,则会出现挂载错误,导致系统无法正常启动。 1、在centos数秒启动页面,按e,进入编辑模式2、找到linux16开头的那行,界面没显示的话,按 ↓ 下键翻页3、找到2步中的ro,修改成:rw init=/sysroot/bin/sh,然后按ctrl+x重启4、执行chroot /sy...
2018-09-17 17:36:30
11967
原创 服务器(CentOS)常用工具安装
yum install wgetyum install zipyum install unzipyum install gccyum install lrzsz#安装ifconfig命令yum install net-tools.x86_64#安装iostat命令yum install sysstatyum install iotop...
2018-06-15 11:02:39
1898
原创 nvme-cli,更新intel pcie硬盘固件
github项目地址https://github.com/linux-nvme/nvme-cli下载:wget https://codeload.github.com/linux-nvme/nvme-cli/zip/mastermv master nvme-cli.zip解压unzip nvme-cli.zip编译安装make && make install操作命令查看列表nvme...
2018-06-15 10:52:17
6142
原创 es服务器部署流程,自己用的,对你没啥用
1、安装jdkrpm -ivh jdk-8u112-linux-x64.rpm2、注销swap分区挂载vi /etc/fstab sudo swapoff -a3、关闭防火墙关闭防火墙关闭开机启动sudo systemctl stop firewalld.servicesudo systemctl disable firewalld.service4、编辑系统配置vi /etc/sysctl.co...
2018-04-24 20:48:02
3791
2
翻译 你救了我一命之 分片不上线,强制上线
curl -XPOST 'localhost:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'{ "commands" : [ {"allocate_stale_primary" : { "index" : "fragment", "shard" : 7, "node" : "nod
2018-04-09 19:15:35
393
原创 修改分片副本
curl -XPUT 'localhost:9200/索引名/_settings' -d'{ "number_of_replicas": 1}'上线curl -XPOST 'localhost:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'{ "commands" : [ {...
2018-03-27 11:23:56
330
转载 Elasticsearch线程池介绍
每个Elasticsearch节点内部都维护着多个线程池,如index、search、get、bulk等,用户可以修改线程池的类型和大小,线程池默认大小跟CPU逻辑一致,本文基于最新的Elasticsearch2.3.x一、查看当前线程组状态[html] view plain copycurl -XGET 'http://localhost:9200/_nodes/stats?pretty' [...
2018-03-18 11:38:22
413
转载 查看ElasticSearch服务状态和结果的URL
1,查看es集群状态http://ip:port/_cat/health?v2,集群节点健康查看http://ip:port/_cat/nodes?v 3,列出集群索引http://ip:port/_cat/indices?v 索引相关URL说明/index/_search不解释/_aliases获取或操作索引的别名/index/ /index/type/创建或操作类型/index/_mappi...
2018-03-18 10:37:00
2316
原创 es笔记
锁内存vi /etc/security/limits.conf 增加两行es soft memlock unlimitedes hard memlock unlimitedvi config/elasticsearch.yml 增加bootstrap.memory_lock: true查看状态curl -XGET 'localhost:9200/_nodes?filter_path=**.mloc...
2018-03-17 23:46:23
623
原创 索引关闭、打开,修改 preload 配置
curl -XPOST 'localhost:9200/fragment/_close'curl -XPUT 'localhost:9200/fragment/_settings?pretty' -H 'Content-Type: application/json' -d'{ "index.store.preload": ["*"]}'curl -XPOST 'localhost:9200/...
2018-03-17 23:07:05
1111
转载 Pre-loading data into the file system cache
By default, Elasticsearch completely relies on the operating system file system cache for caching I/O operations. It is possible to set index.store.preload in order to tell the operating system to loa...
2018-03-17 17:21:31
343
转载 elasticsearch Get multiGet Java Client
Get APIeditThe get API allows to get a typed JSON document from the index based on its id. The following example gets a JSON document from an index called twitter, under a type called tweet, with id v...
2018-03-16 14:14:38
725
转载 Elasticsearch分片管理命令,移动,上线,取消等
Cluster RerouteeditThe reroute command allows to explicitly execute a cluster reroute allocation command including specific commands. For example, a shard can be moved from one node to another explici...
2018-03-16 13:27:22
2709
原创 常用的一些linux命令(自用备份)
开机自动挂载硬盘vi /etc/fstab挂载PCIE固态硬盘配置/dev/nvme0n1 /alidata ext4 defaults 0 0查看挂载信息cat /etc/mtab关闭swap分区直接关闭:sudo swapoff -a永久关闭:编辑/etc/fstab,注释掉swap分
2018-01-28 19:29:46
284
转载 CentOS7 防火墙关闭
CentOS7 的防火墙配置跟以前版本有很大区别,经过大量尝试,终于找到解决问题的关键CentOS7这个版本的防火墙默认使用的是firewall,与之前的版本使用iptables不一样。按如下方便配置防火墙:1、关闭防火墙:sudo systemctl stop firewalld.service2、关闭开机启动:sudo systemctl disable firewalld.ser
2017-03-28 10:24:40
7659
原创 维护
--重置订单update t_platform_document set check_status = 0 where uuid = (select relation_uuid from t_platform_trade_used_record where trade_id = (select trade_id from t_platform_trade where tid = 8888888
2017-03-27 18:23:44
448
原创 Elasticsearch V5.1.1安装IK分词
Elasticsearch版本5.1参考来源:https://github.com/medcl/elasticsearch-analysis-ik一、首先确保jdk版本在1.8以上# java -versionjava version "1.8.0_112"Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
2017-02-07 00:44:12
2378
原创 搭建ElasticSearch 5.2 Java API开发环境
版本:ElasticSearch 5.2.0 在Eclipse下直接创建Java Project,并引入ES目录下的lib包这种是行不通的,会找不到PreBuiltTransportClient类。 正确的做法是使用Maven生成项目(Maven是什么?请自行百度脑补,我也是刚脑补完成,之前没用过,请原谅我的Low B!新版本的Eclipse是自带了Mave
2017-02-06 00:28:22
6918
5
原创 Elasticsearch内存设置
参考自《Elasticsearch Definitive Guide》 Elasticsearch默认堆内存为1 GB,对于实际应用,显然不够,不建议使用默认配置。 设置Elasticsearch的内存又两种方案,最简单的方法是设置一个环境变量为ES_HEAP_SIZE。当服务器启动时,它将读取此环境变量并相应设置内存。命令如下:export ES_HEAP
2017-02-04 16:09:26
21688
8DV1RA13.bin
2018-06-15
8DV1RA11.bin
2018-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人