Install elasticsearch two big pits under Linux

There are few solutions to this pit on the Internet

Hang one

The important thing is to say it three times. If your current user is not a root user, you don’t need to create a new user. You don’t need to create a new user. Create a new user, but after creating a new user, elasticsearch is in the new user, java is installed in the original user, and it cannot be quoted. According to the blog on the Internet, the configuration file is changed and a soft link is created, but it is useless. You can't find java by life or death, so it is the user where your java is installed, and the user where elasticsearch is decompressed to avoid unnecessary trouble.

pit two

After decompressing the elasticsearch file, if you run the startup file in the bin directory, an accessdeniend error will definitely be reported. You can directly chmod -R 777 the root directory of elasticsearch without thinking, and recursively authorize all files in elasticsearch. Of course, the actual production environment may not be like this.

Guess you like

Origin blog.csdn.net/qq_15098623/article/details/103395122