Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
# service elasticsearch start
Starting elasticsearch (via systemctl): [ OK ]
# curl -X GET 'http://localhost:9200'
curl: (7) Failed connect to localhost:9200; Connection refused
journalctl -u elasticsearch
Jul 12 15:11:47 qmarketing systemd[1]: Starting Elasticsearch... Jul 12 15:11:47 qmarketing systemd[1]: Started Elasticsearch. Jul 12 15:11:54 qmarketing systemd[1]: elasticsearch.service: main process exited, code=killed, status=9 Jul 12 15:11:54 qmarketing systemd[1]: Unit elasticsearch.service entered failed state. Jul 12 15:11:54 qmarketing systemd[1]: elasticsearch.service failed. Jul 12 15:17:00 qmarketing systemd[1]: Starting Elasticsearch... Jul 12 15:17:00 qmarketing systemd[1]: Started Elasticsearch. Jul 12 15:17:07 qmarketing systemd[1]: elasticsearch.service: main process exited, code=killed, status=9 Jul 12 15:17:07 qmarketing systemd[1]: Unit elasticsearch.service entered failed state. Jul 12 15:17:07 qmarketing systemd[1]: elasticsearch.service failed. Jul 12 15:26:39 qmarketing systemd[1]: Starting Elasticsearch... Jul 12 15:26:39 qmarketing systemd[1]: Started Elasticsearch. Jul 12 15:26:48 qmarketing systemd[1]: elasticsearch.service: main process exited, code=killed, status=9 Jul 12 15:26:48 qmarketing systemd[1]: Unit elasticsearch.service entered failed state. Jul 12 15:26:48 qmarketing systemd[1]: elasticsearch.service failed.
sudo -u elasticsearch elasticsearch
-bash: -u: command not found