当我重新启动服务器时,Elasticsearch 不会自动启动



我正在尝试按照此处的步骤使 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)

通过停用/scripts/securetmp来解决。有关更多信息,请查看此帖子。

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

# /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.

最新更新