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