linux - Centos 6.5如何自动启动elasticsearch?

标签 linux centos elasticsearch

我在基于 Cent OS 6.5 的服务器上安装了 elasticsearch。启动它:

# cd /usr/share/elasticsearch/elasticsearch-1.5.2]
# ./bin/elasticsearch &

但是当我关闭终端时,进程被终止了。如何将其设置为作为服务自动启动?

最佳答案

尝试在 Elasticsearch 中使用“nohup”命令。

$ nohup ./bin/elasticsearch

现在 nohup 做了什么?在下面的示例中,它在后台启动程序 abcd,后续注销不会停止它。

$ nohup abcd &
$ exit

希望对您有所帮助。

关于linux - Centos 6.5如何自动启动elasticsearch?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30531830/

相关文章:

c - Unicode代码指向utf8和wctomb

linux - screen : how to turn on alternate screen?

php - 如何为 centos 安装 libssl.so.10 和 libcrypto.so.10 64?

java - 批注作为另一个批注的快捷方式

elasticsearch - 使用Fluentd运送到Elasticsearch后,日志未按顺序显示

linux - 无法像 dokku 用户那样通过 ssh 进行身份验证

python - 使用python获取Linux中所有已挂载的文件系统的列表

CentO 不会增加内存限制

apache - 如果未找到请求的图像 URL,则使用 mod_rewrite 调用默认图像 URL

elasticsearch - 为Elasticsearch索引创建映射时出现MapperParsingException