centos7 实现elasticsearch-head 开机自启

news/2024/7/7 12:59:28
一  在/etc/init.d  目录下,创建脚本文件 eshead
#  cd /etc/init.d/
#  vim eshead

二  将以下内容写入文件中(其中nodejs安装路径、elasticsearch-head安装路径根据实际情况进行修改)

#!/bin/sh

#chkconfig: 2345 80 05

#description elasticsearch-head

# nodejs

export NODE_PATH=/usr/bin/node

export PATH=$PATH:$NODE_PATH/bin

# elasticsearch-head

cd /usr/local/elasticsearch-head

nohup npm run start >/usr/local/elasticsearch-head/nohup.out 2>&1 &

三 在  /etc/init.d  目录下赋予新创建的eshead文件执行权限

chmod +x eshead
chkconfig --add eshead

chkconfig --list


http://www.niftyadmin.cn/n/2124320.html

相关文章

Unix实用和常用的命令集合

bash: 是GNU Bourne-Again的外壳,是一个增强的和sh兼容的外壳,bash的提示符是$ cat: 显示文本的内容 cc:用于许多系统的C的编译器 cd:进入某个目录 chgrp:改变文件的组所有权 chmod&#x…

pgpool 之二 stream replication 模式 + slave down up

os: centos7.4 postgresql:9.6.8 pgpool:3.7.3 采用 streaming replication mode 模式,这是比较通用的方案。 The streaming replication mode can be used with PostgreSQL servers operating streaming replication. In this mode, PostgreSQL is responsible fo…

Linux上基于网页管理mysql安装过程中的错误点

在安装的过程中,Documentation.html,容易写成Documentstation.html导致访问失败,在访问index.php是不能访问,出现乱码,在.../conf/http.conf中添加 AddType application/x-httpd-php .php .phtml AddType application/…

pgpool 之三 pgpool的几种模式

pgpool:3.7.3 文档 http://www.pgpool.net/docs/latest/en/html/configuring-pgpool.html 4.3.2. Running mode of Pgpool-II There are four different running modes in Pgpool-II: streaming replication mode, logical replication mode, master slave mode (slony mode…

linux上安装oracle11.2.0

软件环境 RedHat5.3,linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip oracle11.2.0的安装界面不同于oracle10g界面。 安装的前提是安装必须的软件包和内核参数: 加载光驱: 跟oracle10g的方式是一样的。这里就不说…

redis cluster 4.0.9 之一: make make install

os: centos7.4 redis:4.0.9 ruby:2.3.4 ip 规划 redis1 192.168.56.101 redis2 192.168.56.102用两台虚拟机模拟6个redis节点。 分别为 192.168.56.101 的 9001、9002、9003 端口&#xff0c; 192.168.56.102 的 9001、9002、9003 端口。 os安装 参考<<centos …

毕业感想

时间总是在我们不知不觉得时候从我们的身边溜走&#xff0c;让我们猝不及防。还记得自己还在小学打架&#xff0c;在初中玩耍&#xff0c;在高中奋斗着呢。转眼间培训结束的时间也到啦。 回想自己在培训的这一年中&#xff0c;感慨很多。还记得哪天为了来学校冒着大雪做了不到两…

oracle ebs r12 打补丁的步骤

os: linux 5.8 ebs:12.1.3 patch:14332598 这里以 p14332598 为例&#xff0c;列出打补丁的过程。 查看补丁 SELECT * FROM ad_applied_patches where 11and patch_name in (14332598) ; SELECT *FROM ad_bugs where 11and bug_number in (14332598) ; 下载patch h…