Using the image service deployed by docker stack, after entering the image, in theory, you should be able to access the local elasticsearch service through the following instructions
But it says access denied. Later, after using the above instructions to check, it was found that the machine also denied access. Later, it was discovered that the elasticsearch service on port 9200 was connected to the elasticsearch service on the remote server by punching a hole, and the port could only be accessed through the following command:
If you want to access port 9200 through the local IP address, you need to add -g after the hole-punching command. Additional knowledge: When running elasticsearch in docker, port 9200 cannot be accessed, and the container is closed as soon as it is started When using docker to install es, access to port 9200 failed. Using docker ps to view the container, it was found that after starting es, it would automatically shut down after a period of time. I increased the virtual machine's memory to 4G, and the problem persisted. In fact, the main problem is that the memory allocated to ES is too small: 1. Enter the etc directory and edit the sysctl.conf file:
2. Add configuration:
3. Execution:
4. If starting es still fails, modify limits.conf: vi /etc/security/limits.conf *soft nofile 65536 *hard nofile 131072 * soft nproc 2048 * hard nproc 4096 5. Finally, restart the virtual machine and access the browser: http://192.168.162.131:9200. You can see that the startup is successful: I succeeded by only modifying sysctl.conf, without modifying limits.conf The above docker image access to the local elasticsearch port operation is all the content shared by the editor. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Beginners learn some HTML tags (3)
>>: In-depth understanding of Mysql logical architecture
Today is 618, and all major shopping malls are ho...
background I have a project service that uses AWS...
We all know that Jmeter provides native result vi...
By chance, I discovered that a SQL statement prod...
Install the unzipped version of MySql database un...
1. Yum installation yum install subversion 2. Con...
introduction Looking back four years ago, when I ...
Table of contents 1. Application Lifecycle 2. Pag...
When you feel that there is a problem with MySQL ...
Need to export the fields and properties of the t...
About the invalid line-height setting in CSS Let&...
Today, let's talk about how to use js to achi...
How to check if the Docker container time zone is...
Preface Use nginx for load balancing. As the fron...
Using the UNION Operator union : Used to connect ...