2 Permission denied
es用户启动 elasticsearch时,es目录没有权限:chmod -R 777 /opt/elastic/es
[es@ecs-65685 ~]$ /opt/elastic/elasticsearch-7.8.1/bin/elasticsearch2022-10-11 23:54:04,818 main ERROR RollingFileManager (/opt/elastic/es/logs/elasticsearch_deprecation.log) java.io.FileNotFoundException: /opt/elastic/es/logs/elasticsearch_deprecation.log (Permission denied) java.io.FileNotFoundException: /opt/elastic/es/logs/elasticsearch_deprecation.log (Permission denied) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:234) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:155)
文章插图
3 logstash直接启动会报错
[root@ecs-65685 ~]# /opt/elastic/logstash-7.8.1/bin/logstashOpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/opt/elastic/logstash-7.8.1/logstash-core/lib/jars/jruby-complete-9.2.11.1.jar) to method sun.nio.ch.NativeThread.signal(long)WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.ModulesWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operationsWARNING: All illegal access operations will be denied in a future releaseSending Logstash logs to /opt/elastic/logstash-7.8.1/logs which is now configured via log4j2.propertiesERROR: Pipelines YAML file is empty. Location: /opt/elastic/logstash-7.8.1/config/pipelines.ymlusage:bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]bin/logstash --modules MODULE_NAME [-M "MODULE_NAME.var.PLUGIN_TYPE.PLUGIN_NAME.VARIABLE_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]bin/logstash --help[2022-10-12T14:31:11,184][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
推荐阅读
- 小米盒子怎么安装? 怎么用(小米盒子安装软件提示安装失败)
- Docker | 数据持久化与数据共享
- 小米盒子怎么用安装(小米盒子如何安装kodi)
- 带有pwn环境的Ubuntu22.04快速安装
- 使用docker-compose安装Prometheus
- 手把手教你玩转 Gitea|在 Windows 系统上安装 Gitea
- 已验证 Linux安装中文字体
- CentOS 7.9 安装 rabbitmq-3.10.2
- CentOS 7.9 安装 rocketmq-4.9.2
- 不安装运行时运行 .NET 程序 - NativeAOT