腾讯云主机systemctl restart elasticsearch起不来的问题解决
Posted hnhycnlc888
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了腾讯云主机systemctl restart elasticsearch起不来的问题解决相关的知识,希望对你有一定的参考价值。
腾讯云主机elasticsearch起不来的问题解决 [root@VM_58_118_centos elasticsearch]# vim /usr/lib/systemd/system/elasticsearch.service [Unit] Description=Elasticsearch [Service] User=elasticsearch Group=elasticsearch LimitNOFILE=100000 LimitNPROC=100000 ExecStart=/usr/share/elasticsearch/bin/elasticsearch [Install] WantedBy=multi-user.target [root@VM_58_118_centos elasticsearch]# systemctl daemon-reload [root@VM_58_118_centos elasticsearch]# cat /etc/passwd |grep elasticsearch elasticsearch:x:984:988:elasticsearch user:/home/elasticsearch:/sbin/nologin 修改为 elasticsearch:x:984:988:elasticsearch user:/home/elasticsearch:/bin/bash [root@VM_58_118_centos elasticsearch]# mkdir -p /home/elasticsearch [root@VM_58_118_centos elasticsearch]# chmod -R 755 /home/elasticsearch su - elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d exit [root@VM_58_118_centos elasticsearch]# ./plugins/search-guard-2/tools/sgadmin.sh -cn syhuo -h 127.0.0.1 -cd plugins/search-guard-2/sgconfig -ks plugins/search-guard-2/sgconfig/syhuo-keystore.jks -kspass 86337898 -ts plugins/search-guard-2/sgconfig/truststore.jks -tspass 86337898 -nhnv [root@VM_58_118_centos elasticsearch]# ps -ef |grep elasticsearch [root@VM_58_118_centos elasticsearch]# kill -9 xxxx [root@VM_58_118_centos elasticsearch]# systemctl restart elasticsearch [root@VM_58_118_centos elasticsearch]# systemctl restart status [root@VM_58_118_centos elasticsearch]# netstat -anop|grep 9300 [root@VM_58_118_centos elasticsearch]# cat /etc/passwd |grep elasticsearch elasticsearch:x:984:988:elasticsearch user:/home/elasticsearch:/bin/bash 修改为 elasticsearch:x:984:988:elasticsearch user:/home/elasticsearch:/sbin/nologin [root@VM_58_118_centos elasticsearch]# systemctl enable elasticsearch [root@VM_58_118_centos elasticsearch]# systemctl list-unit-files |grep enable |grep elasticsearch
以上是关于腾讯云主机systemctl restart elasticsearch起不来的问题解决的主要内容,如果未能解决你的问题,请参考以下文章
重启不了要怎么解决systemctl restart named-chroot
Linux Redirecting to /bin/systemctl restart iptables.service
关于mysql启动不了的心得,使用systemctl restart mysqld失败
CentOS7+Nginx设置Systemctl restart nginx.service服务
关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法