Jdk installed
my stuff there https://www.cnblogs.com/vinic-xxm/p/11825691.htmlRTF-mounted elasticsearch
Git clone Git: //github.com/medcl/elasticsearch-rtf.git -b Master -depth. 1
Git slow. Austrian version 5.5.4 can directly from my network drive, do not look wrong
link: https://pan.baidu.com/s/1t-5_p5hKCAcqBX6DK0K9NQ
extraction code: 4gql
Then the zip format in the Linux
yum unzip the install
codecs with unzip command
Direct operation will complain
execution ./elasticsearch run in the bin directory
because elasticsearch5 default jvm allocation of space to 2g, we change the next space jvm allocation
vim config / jvm.options
- Create a new user
es can not run as root, you will complain
adduser phpq // New phpq user
passwd phpq // phpq user to set a password
chown -R phpq: phpq / elasticsearch- rtf // Finally the directory file path Configuring Extranet access
vim config / elasticsearch.yml amended as follows
Network Solutions in these two comments
在末尾加上这4句代码
http.cors.enabled: true
http.cors.allow-origin: “*”
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.allow-headers: “X-Requested-With,Content-Type,Content-Length, X-User”
- Vim /etc/security/limits.conf under the root account
turn to the last
content: Soft nofile 65536
Hard nofile 65536
Switch to the user that you create
ulimit -Hn
As shown be the successful appear
Cut to the root user
vim /etc/sysctl.conf
modification of the FIG.
Then execute sysctl -p
then execute sysctl -a | grep vm.max_map_count
Note: On the external network access has been completed in the past
now cut to the ordinary user in running, open the data that is done after the input address in the browser!
If you can not get out, I refer to this blog
https: //www.cnblogs. com / vinic-xxm / p / 11871742.html