英文:
Error after installing Ubuntu Elastic Search
问题
我已经安装了Java SDK 8和Elasticsearch 6.8。当我重新启动Elasticsearch时,我遇到了以下错误:
> 由于超时,elasticsearch.service的作业失败。
当我运行journalctl -xe
时,我得到了以下错误:
> bitmask-vpn[21283]:在SNAP环境中使用'/tmp'路径将导致资源不可读。
为解决此问题,我已经采取了以下步骤:
a. 确保我已经安装了Java SDK 8。当我运行echo $JAVA_HOME
时,它返回:
/usr/lib/jvm/java-8-openjdk-amd64
b. 然后我打开了:
sudo nano /etc/elasticsearch/elasticsearch.yml
并注释掉了httpport
一行。
c. 我还运行了sudo apt-get autoremove
命令。
问题仍然存在。
英文:
I have installed java SDK 8 and elastic search 6.8. When I restarted elastic search, I got this error:
> Job for elasticsearch.service failed because a timeout was exceeded.
and when I run journalctl -xe
, i get this error:
> bitmask-vpn[21283]: Using '/tmp' paths in SNAP environment will lead
> to unreadable resources
What I have done to solve this issue:
a. I made sure that I have Java SDK 8. When I run echo $JAVA_HOME
, it returns
/usr/lib/jvm/java-8-openjdk-amd64
b. Then I went to
sudo nano /etc/elasticsearch/elasticsearch.yml
and commented out httpport
c. I have also run sudo apt-get autoremove
The issue still persists.
专注分享java语言的经验与见解,让所有开发者获益!
评论