Personal homepage:Golden Scales Stepping on the Rain
Personal introduction: Hello everyone, I amJinlin, a fledgling Java novice< /span>
Current situation: A 22nd ordinary undergraduate graduate. After many twists and turns, he now works for a large and well-known domestic daily chemical company, engaged in Java development
My blog: This is CSDN, where I learn technology and summarize knowledge. I hope to communicate with you and make progress together ~
Preface
This pit can be big or small. To summarize, this problem is generally caused by these three points:
- 【Big Pit】The accessed console webpage is not added /naocs
- No startup mode is specified, for example: MODE=standalone
- Firewall issues
Docker install Nacos
docker pull nacos/nacos-server:1.4.1
docker run --name nacos \
--restart=always \
-e MODE=standalone \
-p 8848:8848 \
-d \
nacos/nacos-server:1.4.1
Visit URL:http://192.168.136.128:8848/nacos
If this interface can appear, you don't need to read the following content.
It should be noted that the accessed web page requires[IP]:[Port]/nacos not added /nacos It is very likely that a 404 page will appear. This is the reason why 90% of friends on the Internet report errors when accessing.
BUG
1. The accessed console webpage is not added /naocs
This point was discussed above
You can take a look at this screenshot. The editor only realized this after reading this article.
2. No startup method specified
-e MODE=standalone
3. Firewall issues
Query the ports that have been opened to the outside world
netstat -anp
Check whether the specified port is open
firewall-cmd --query-port=8848/tcp
Add the specified ports that need to be opened:
firewall-cmd --add-port=8848/tcp --permanent
Reload the added port:
firewall-cmd --reload
Check whether the specified port is opened successfully:
firewall-cmd --query-port=8848/tcp
The article ends here. If you have any questions, you can point them out in the comment area~
I hope to work hard with the big guys and see you all at the top
Thank you again for your support, friends! ! !