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
Prepare 1. Download the required installation pac...
Table of contents infer Case: Deepen your underst...
Requirements: Remove HTTP response headers in IIS...
This article introduces the implementation code o...
1. Grammar location [=|~|~*|^~|@] /uri/ { ... } 2...
Website administrators often accidentally delete ...
1. Spring boot does not support jsp jar package, ...
I encountered a very strange problem today. Look a...
Table of contents mysql filtered replication Impl...
Preface Recently I found that my friend's met...
Generally, after there is a menu on the left, the...
Table of contents 1. Solution 1 (UDF) Demo Case 2...
When the img src value is empty, two requests are ...
In front-end development, we are in direct contac...
Table of contents Nginx proxies two socket.io ser...