elasticsearch - 当我重新启动服务器时,Elasticsearch 不会自动启动
问题描述
当我按照此处的步骤重新启动服务器时,我试图让 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)
解决方案
通过停用来解决/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.
推荐阅读
- sql - 数据透视表 - 定义列 null 中的 Dlookup
- verilog - 如何将单个位复制到 Chisel 3 中的 UInt?
- python - Python:重新映射并缩小数字范围
- python - 根据百分比分布元素
- python - 从返回的数据中删除索引
- java - 如何从 Java 执行 EXECUTE IMMEDIATE?
- google-cloud-platform - 如何在“gcloud builds”中使用“gcloud deployment-manager deployments”在 GCP 上有完整的 CI/CD 管道?
- html - 如何避免滚动条堆叠
- shortest-path - Dijkstra-添加新的verticle
- reactjs - 如何使用 componentWillUnmount 停止循环动画?