首页 > 解决方案 > 当我重新启动服务器时,Elasticsearch 不会自动启动

问题描述

当我按照此处的步骤重新启动服务器时,我试图让 Elasticsearch 自动启动。

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

有人告诉我,我需要删除noexec/etc/fstabnoexec存在。

编辑:

我认为 当我运行时我看到该noexec选项可能会添加:/scripts/securetmpmount

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

标签: elasticsearchelastic-stackelk

解决方案


通过停用来解决/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.

推荐阅读