在Linux环境下快速部署Elasticsearch-6.4.2

【在Linux环境下快速部署Elasticsearch-6.4.2】总结一下他人的劳动成果
CentOS7 linux 安装 jdk、tomcat + 配置 tomcat 开机启动 + tomcat 快捷启动命令
Linux下如何查看tomcat是否启动
elasticsearch6.6.0安装配置及elasticsearch-head插件安装
Linux(CentOS)安装Node.JS和npm的两种方式(yum安装和源码安装)
查看Tomcat是否以关闭

#ps -ef|grep java

开启Tomcat
#cd bin #./startup.sh

安装elasticsearch服务
#vim elasticsearch.yml #chmod -R 775 elasticsearch #chown -R elsearch:elsearchelasticsearch-6.4.2/ #./elasticsearch-6.4.2/bin/elasticsearch #vim /etc/security/limits.conf #vim /etc/profile #source /etc/profile #sysctl -w vm.max_map_count=262144 #sysctl -a | grep "vm.max_map_count" #node -v //查看nodejs的版本 #npm -v //查看npm的版本

启动elasticsearch-head-master
#git clone git://github.com/mobz/elasticsearch-head.git #grunt -version #grunt server &

开启elasticsearch服务
#su - elasticsearch //切换用户 #./elasticsearch &

查看elasticsearch的进程
#ps -aux|grep elasticsearch #ps -aux|grep 9300 #netstat -natpl | grep 9300

Linux环境下安装Elasticsearch-PHP
#mkdir esphp #vim composer.json #composer install --no-dev #curl -s http://getcomposer.org/installer | php #chmod -R 777 esphp/ #su - elasticsearch #php composer.phar install --no-dev

ERROR!!!
centos 6.5 max file descriptors [65535] for elasticsearch process is too low,increase to at least [65536]
max file descriptors [65535] for elasticsearch process likely too low, increase to at least [65536]
ELK学习系列文章第二章:elasticsearch常见错误与配置简介
ElasticSearch 安装报错整理

    推荐阅读