Recently, while learning about Spring-cloud-alibaba, I was unable to connect to IP :8848/nacos when INSTALLING NACOS.
I always suspected that my NACOS was not started, and then I followed the official document step by step!
By rights, such a prompt has been started successfully!
But I still can’t connect to IP :8848/nacos
This situation is similar to the previous installation of mysql, encountered a similar problem, naturally suspect whether the port is not open problem! So we go through them in turn
1. Set aliyun security group
1. Add port 8848 manually
Two, set the firewall
1. Open the firewall and view the firewall port
# systemctl start firewalld
# firewall-cmd --permanent --list-port
Copy the code
The firewall port is not opened
2. Add port 8848, restart the firewall, and view the firewall port
# firewall-cmd --permanent --zone=public --add-port=8848/tcp
# systemctl restart firewalld
# firewall-cmd --permanent --list-port
Copy the code
3. Set the network status
1. Check network listening
# netstat
Copy the code
I found no tap for 8848
2. Add port 8848
# vim /etc/sysconfig/iptables // A INPUT -m state -state NEW -m TCP -p TCP -dport 8848 -j ACCEPTCopy the code
3. Restart the firewall and check the network listener
4. Try NACos Web
The successful appearance of the NACOS Web page indicates that the basic configuration of our NACOS environment is complete.
Ali cloud is not like we use virtual machines or use local servers, as long as the startup is complete, even if the configuration is successful.
As a commercial cloud server provider, there are a few things that need to be configured by yourself.
Hopefully this article will help you avoid the pitfalls