【问题标题】:Elasticsearch does not start automatically when I restart the server当我重新启动服务器时,Elasticsearch 不会自动启动
【发布时间】:2020-06-08 05:39:31
【问题描述】:

我正在尝试按照here 的步骤重新启动服务器时自动启动 Elasticsearch。

问题是当我重新启动服务器时,/tmp 正在使用 noexec 选项挂载,我需要运行 mount -o remount,exec /tmp 并再次手动启动 Elasticsarch。

有人告诉我,我需要从/etc/fstab 中删除noexec,但noexec 不存在。

编辑:

我认为noexec 选项可能由/scripts/securetmp 添加 当我运行mount 时,我看到了:

/usr/tmpDSK on /tmp type ext3 (rw,relatime,data=ordered)
/usr/tmpDSK on /var/tmp type ext3 (rw,nosuid,noexec,relatime,data=ordered)

【问题讨论】:

  • 这不是弹性问题。你是用 deb 包安装的吗?
  • @hamidbayat 使用 RPM,在 CentOS 7 上
  • /etc/systemd/system/local-fs.target.wants/tmp.mount 文件中有什么?
  • @IanGabes 我有目录/etc/systemd/system/local-fs.target.wants,但没有tmp.mount 文件。
  • 谢谢@IanGabes,我刚刚解决了这个问题。

标签: elasticsearch elastic-stack elk


【解决方案1】:

通过停用/scripts/securetmp 解决。如需更多信息,请查看this post

我提取了这些步骤以防万一该帖子将来消失。

运行

# /scripts/securetmp

会出现这样的:

Would you like to secure /tmp & /var/tmp at boot time? (y/n)

输入n

会出现这样的:

securetmp will not be added to system startup at this time.
Would you like to disable securetmp from the system startup? (y/n)

输入y

会出现这样的:

Would you like to secure /tmp & /var/tmp now? (y/n)

输入n

会出现这样的:

/tmp & /var/tmp will not be secured at this time.

【讨论】:

    猜你喜欢
    • 2019-08-23
    • 1970-01-01
    • 1970-01-01
    • 2015-08-19
    • 2011-07-30
    • 2017-04-03
    • 2020-07-17
    • 1970-01-01
    • 2020-07-11
    相关资源
    最近更新 更多