In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
ELK 7.4.1 installation configuration manual of the pre-environment build one. Openjdk installation 1. Description
Because elasticsearch 7.4.1 depends on java 11 or above to run, you choose to install it directly with the version of openjdk-13.0.1.
This chapter mainly introduces the environment construction of openjdk.
Jdk download link: https://pan.baidu.com/s/1ZRPFSSTvsk2n4s8KzrLF8A extraction code: ll43
2. Installation
Decompress openjdk
[root@node01 ~] # tar zxvf openjdk-13.0.1_linux-x64_bin.tar.gz
Cut the extracted directory under / usr/local
[root@node01 ~] # mv jdk-13.0.1/ / usr/local/
Configure environment variables
[root@node01 ~] # vim / etc/profile
Export JAVA_HOME=/usr/local/jdk-13.0.1/
Export PATH=$PATH:$JAVA_HOME/bin
Export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH
Load environment variables to take effect
[root@node01 ~] # source / etc/profile
# if it does not take effect after loading, exit exits the terminal and reopens it
Check to see if java is installed successfully
[root@node01 ~] # java-version
Openjdk version "13.0.1" 2019-10-15
OpenJDK Runtime Environment (build 13.0.1 / 9)
OpenJDK 64-Bit Server VM (build 13.0.1 / 9, mixed mode, sharing)
Because the later elk will call the java under / usr/sbin these paths, link the executable file of the java to it.
[root@node01] # ln-s / usr/local/jdk-13.0.1/bin/* / usr/sbin/ II. Adjustment of system parameters 1. Description
Because elk will involve multi-file opening, and the default openfile of the system is relatively small, it is necessary to make some adjustments to the kernel.
2. Configuration
Set the number of open file links by modifying kernel parameters
Addition at the end of vi / etc/sysctl.conf #
Vm.max_map_count=655360
Fs.file-max=655360
Set up soft nproc
Vi / etc/security/limits.d/20-nproc.conf # to see if the content is
* soft nproc 4096
Root soft nproc unlimited
Set up limits
Vi / etc/security/limits.conf # additions
* hard nofile 65536
* soft nproc 2048
* hard nproc 4096
* soft memlock unlimited
* hard memlock unlimited
Make the kernel settings take effect
[root@node01 elasticsearch] # sysctl-p
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.