为什么Elasticsearch 8x。从互动开始,但不是作为服务Ubuntu 20.04的服务?

发布于 2025-01-21 12:12:44 字数 1005 浏览 4 评论 0原文

在Ubuntu 16.04上解决此问题的提示似乎不起作用。 这是指向各种技巧领域之一的链接: https://discuss.lastic。 co/t/cant-start-elasticsearch-with-ubuntu-16-04/48730/28

缺少一些东西 - 我在Ubuntu 20.04上,ES V8.X,Logstash 8.x,Kibana 8。 x。手动启动效果很好。注意:

  1. 根本没有“ etc/default/elasticsearch”文件;我创建了一个: (是的,用户确实存在;所有所有权都已更改 所有文件)

    #这是我创建的“/etc/default/elasticsearch”文件: es_user =“ elasticsearch” es_group =“ elasticsearch”

    start_daemon =“ true”&lt ;--这甚至需要Beyone Ubuntu 16吗? restart_on_upgrade =“ true”

  2. 我认为我是通过deb .tar软件包安装的,而不是通过apt

    安装的
  3. 安装的。但是只有“交互式” - 那么我们如何解决不存在服务的事实?我尝试了所有相关的技巧和所有其他建议。 - ??

    elasticsearch@es-vm:/etc/ect/默认$服务elasticsearch状态 单位Elasticsearch.Service找不到。

    root@es-vm:/etc/ext/default#服务elasticsearch start 无法启动Elasticsearch.Service:单位Elasticsearch.Service找不到。

任何帮助将不胜感激。提前致谢!

The tip for fixing this issue on Ubuntu 16.04 does not seem to work.
Here's a link to one of the areas of various tips:
https://discuss.elastic.co/t/cant-start-elasticsearch-with-ubuntu-16-04/48730/28

There's something missing - I'm on ubuntu 20.04, and ES v8.x, logstash 8.x, kibana 8.x. Manually starting works great. Notes:

  1. There was NO "etc/default/elasticsearch" file at all; I created one:
    (and yes, the user & group do exist; and all ownership has been changed on
    all the files)

    #Here's the "/etc/default/elasticsearch" file I created:
    ES_USER="elasticsearch"
    ES_GROUP="elasticsearch"

    START_DAEMON="true" <-- Is this even needed beyone Ubuntu 16?
    RESTART_ON_UPGRADE="true"

  2. I think I installed via the deb .tar packages and not via APT

  3. It runs GREAT; but only "interactively" - so how do we fix the fact that no service exists? I've tried all the related tips, and all other recommendations. - ??

    elasticsearch@ES-VM:/etc/default$ service elasticsearch status
    Unit elasticsearch.service could not be found.

    root@ES-VM:/etc/default# service elasticsearch start
    Failed to start elasticsearch.service: Unit elasticsearch.service not found.

Any help would be greatly appreciated. Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是你 2025-01-28 12:12:44

如果您通过焦油文件安装,那么系统上没有其他任何其他文件,没有默认文件,没有服务文件。这是一种非常典型的Linux方法,可以通过TGZ“安装”任何内容,因为它类似于“ UNZIP”,

如果您想开始使用该服务,然后使用deb package或apt repo,否则您将需要创建自己的自己服务文件

if you installed via the tar file then there's nothing else that is created on the system, no defaults file, no service file. that's a pretty typical linux approach to "installing" anything via a tgz, as it's akin to an "unzip"

if you want to start this as a service then use the deb package or the apt repo, or you will need to create your own service file

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文