elasticsearch6.1 安装问题
问题:
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
[root@localhost logs]# adduser es
[root@localhost logs]# passwd es
Changing password for user es.
New password:
BAD PASSWORD: The password is shorter than 7 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost soft]# chown -R es elasticsearch-6.1.1
[root@localhost soft]# chown -R es file
[root@localhost soft]# su es
[es@localhost bin]$ ./elasticsearch
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[2018-01-10T14:30:10,728][INFO ][o.e.n.Node ] [node-1] initializing ...
[2018-01-10T14:30:10,954][INFO ][o.e.e.NodeEnvironment ] [node-1] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [41.7gb], net total_space [45gb], types [rootfs]
[2018-01-10T14:30:10,955][INFO ][o.e.e.NodeEnvironment ] [node-1] heap size [503.6mb], compressed ordinary object pointers [true]
[2018-01-10T14:30:10,956][INFO ][o.e.n.Node ] [node-1] node name [node-1], node ID [6mBr8gIiRiy3IXtZBE1p6A]
[2018-01-10T14:30:10,956][INFO ][o.e.n.Node ] [node-1] version[6.1.1], pid[29969], build[bd92e7f/2017-12-17T20:23:25.338Z], OS[Linux/3.10.0-693.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b12]
[2018-01-10T14:30:10,956][INFO ][o.e.n.Node ] [node-1] JVM arguments [-Xms512m, -Xmx512m, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/soft/elasticsearch-6.1.1, -Des.path.conf=/opt/soft/elasticsearch-6.1.1/config]
[2018-01-10T14:30:13,063][INFO ][o.e.p.PluginsService ] [node-1] loaded module [aggs-matrix-stats]
[2018-01-10T14:30:13,063][INFO ][o.e.p.PluginsService ] [node-1] loaded module [analysis-common]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [ingest-common]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-expression]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-mustache]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-painless]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [mapper-extras]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [parent-join]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [percolator]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [reindex]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [repository-url]
[2018-01-10T14:30:13,064][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty4]
[2018-01-10T14:30:13,065][INFO ][o.e.p.PluginsService ] [node-1] loaded module [tribe]
[2018-01-10T14:30:13,065][INFO ][o.e.p.PluginsService ] [node-1] no plugins loaded
[2018-01-10T14:30:16,339][INFO ][o.e.d.DiscoveryModule ] [node-1] using discovery type [zen]
[2018-01-10T14:30:17,426][INFO ][o.e.n.Node ] [node-1] initialized
[2018-01-10T14:30:17,426][INFO ][o.e.n.Node ] [node-1] starting ...
[2018-01-10T14:30:17,699][INFO ][o.e.t.TransportService ] [node-1] publish_address {192.168.20.168:9300}, bound_addresses {[::]:9300}
[2018-01-10T14:30:17,721][INFO ][o.e.b.BootstrapChecks ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-01-10T14:30:17,801][INFO ][o.e.n.Node ] [node-1] stopping ...
[2018-01-10T14:30:17,871][INFO ][o.e.n.Node ] [node-1] stopped
[2018-01-10T14:30:17,871][INFO ][o.e.n.Node ] [node-1] closing ...
[2018-01-10T14:30:17,886][INFO ][o.e.n.Node ] [node-1] closed
问题:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
解决方法:切换到root用户,进入vi /etc/security/limits.conf ,增加配置(保存后注意切回work用户的时候才能生效,sudo 修改的不能立即生效):
es soft nofile 819200
es hard nofile 819200
问题:
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-01-10T15:09:44,884][INFO ][o.e.n.Node ] [node-1] stopping ...
[2018-01-10T15:09:44,954][INFO ][o.e.n.Node ] [node-1] stopped
[2018-01-10T15:09:44,955][INFO ][o.e.n.Node ] [node-1] closing ...
[2018-01-10T15:09:44,970][INFO ][o.e.n.Node ] [node-1] closed
[es@localhost bin]$ cat /etc/sysctl.conf | grep vm.max_map_count
[es@localhost bin]$ echo "vm.max_map_count=262144" >>/etc/sysctl.conf
bash: /etc/sysctl.conf: Permission denied
[es@localhost bin]$ su root
Password:
[root@localhost bin]# echo "vm.max_map_count=262144" >>/etc/sysctl.conf
[root@localhost bin]# cat /etc/sysctl.conf | grep vm.max_map_count
vm.max_map_count=262144
问题:
Elasticsearch在linux下使用命令sh elasticsearch start,按键ctrl+c的时候程序就会stop掉,如何将程序在后台启动呢?
需要使用:./elasticsearch -d
这时执行的时候会出现没有权限./elasticsearch: Permission denied
需要授权执行命令:chmod +x bin/elasticsearch
再次执行./elasticsearch -d即可启动
使用ps aux|grep elasticsearch可以查看是否启动
elasticsearch6.1 安装问题的更多相关文章
- ElasticSearch-6.2安装head插件
环境 Windows10企业版X64 JDK-1.8 ElasticSearch-6.2.4 node-v10.1 git客户端 步骤 安装node到K盘.如K:\nodejs. 把NODE_HOME ...
- centors7 elasticsearch6.3安装以及问题记录
1.安装elasticsearch . 安装系统:centors7 1.下载安装包 官网地址:https://www.elastic.co/downloads/past-releases 2.mac文 ...
- Elasticsearch6.5安装&&常见问题与答案解释
ElasticSearch是一个用Java开发的基于Lucene的搜索服务器.它可以提供一个分布式多用户能力的全文搜索引擎,基于RESTfulweb接口.现阶段它主要为Apache许可条款下的开放源码 ...
- windows下elasticsearch6.X安装IK分词器
文章来源:https://www.cnblogs.com/hts-technology/category/1167823.html (一)到官网下载https://github.com/medcl/e ...
- elasticsearch6.6及其插件安装记录(较详细)
借鉴网上资料并实施验证结果 elasticsearch6.6安装 安装包下载路径 https://www.elastic.co/downloads/elasticsearch 本文使用安装包 elas ...
- kibana和中文分词器analysis-ik的安装使用
Centos7安装elasticSearch6 上面讲述了elasticSearch6的安装和使用教程. 下面讲一下elasticsearch6的管理工具Kibana. Kibana是一个开源的分析和 ...
- elk+kafka+zookeeper+filebeat安装
ElasticSearch6.0 ElasticSearch6.0安装 #依赖jdk8 rpm -ivh elasticsearch-.rpm vim /etc/elasticsearch/elast ...
- elasticsearch数据库使用
elasticsearch的一个最为显著的优点:快速全文检索.关于elasticsearch 全文检索的原理,请看:https://blog.csdn.net/wolfcode_cn/article/ ...
- Elasticsearch6.0及其head插件安装
Elasticsearch6.0及其head插件安装 1.下载并解压elasticsearch 2.修改elasticsearch.yml文件 # 集群的名字 cluster.name: my-app ...
随机推荐
- 10折交叉验证(10-fold Cross Validation)与留一法(Leave-One-Out)、分层采样(Stratification)
10折交叉验证 我们构建一个分类器,输入为运动员的身高.体重,输出为其从事的体育项目-体操.田径或篮球. 一旦构建了分类器,我们就可能有兴趣回答类似下述的问题: . 该分类器的精确率怎么样? . 该分 ...
- blfs(systemv版本)学习笔记-wget的安装与配置
我的邮箱地址:zytrenren@163.com欢迎大家交流学习纠错! blfs wget项目地址:http://www.linuxfromscratch.org/blfs/view/8.3/basi ...
- 谈谈web上各种图片应用的优缺点
web中承载信息的主要方式就是图片与文字了,以下就是对一些web图片格式的优缺点进行归纳. 1.GIF GIF图是比较古老的web图片格式之一,可以追溯到1987,几乎所有的浏览器都支持这一种格式,老 ...
- 最新安全狗 apache v4.0 sql注入 bypass
前言 最近没事学习一下 waf 的 bypass , 本文介绍下 bypass 安全狗的笔记.个人感觉 bypass 的总思路(正则匹配型 waf)就是利用各种语法特性来逃避正则(当然要保证语法正确性 ...
- 国网SGCC_UAP 反编译.class文件源代码
SGCC_UAP和eclipse操作方式差不多,对于用惯了IDEA和Android Studio的人来说非常不方便,按住Ctrl点击类名不能查看源码. 因为jar包下都是.class文件,所以需要安装 ...
- tab 页形式展现多张报表
业务系统中,很多报表都是沿用之前 EXCEL 的报表样式,原来以 sheet 格式显示的表,客户在 web 端展现的时候也希望也有同样的格式,润乾在实现这种效果和 EXCEL 一样简单灵活,轻松将数据 ...
- Android深入四大组件(七)Service的绑定过程
前言 我们可以通过调用Context的startService来启动Service,也可以通过Context的bindService来绑定Service,建议阅读此篇文章前请阅读Android深入四大 ...
- Android系统启动流程(二)解析Zygote进程启动过程
1.Zygote简介 在Android系统中,DVM(Dalvik虚拟机).应用程序进程以及运行系统的关键服务的SystemServer进程都是由Zygote进程来创建的,我们也将它称为孵化器.它通过 ...
- python接口测试—post请求(二)
使用post请求登陆小极客网. 1.获取登陆接口,及用户名和密码参数 进入小极客网,先注册个账户,修改用户名和密码,然后点击登陆,打开debug调试-进入到network下 输入用户名和密码,点击登陆 ...
- Java实现对zip和rar文件的解压缩
通过java实现对zip和rar文件的解压缩