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

时间:2020-06-07 00:46:34

标签: elasticsearch elastic-stack elk

我尝试按照here步骤重新启动服务器时,使Elasticsearch自动启动。

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

有人告诉我,我需要从noexec中删除/etc/fstab,但是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)

1 个答案:

答案 0 :(得分: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.