我尝试按照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)
答案 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.