【发布时间】:2020-06-08 05:39:31
【问题描述】:
我正在尝试按照here 的步骤重新启动服务器时自动启动 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)
【问题讨论】:
-
这不是弹性问题。你是用 deb 包安装的吗?
-
@hamidbayat 使用 RPM,在 CentOS 7 上
-
/etc/systemd/system/local-fs.target.wants/tmp.mount文件中有什么? -
@IanGabes 我有目录
/etc/systemd/system/local-fs.target.wants,但没有tmp.mount文件。 -
谢谢@IanGabes,我刚刚解决了这个问题。
标签: elasticsearch elastic-stack elk