Record an exception resolution port for data push

   Requirement: get data from db and push to B

        After the program development is completed, I went to jboss, and I reported a lot of errors at the beginning, and solved them one by one, but it finally showed that the database could not be connected. Colleagues in the computer room said they could ping.

    I drew a picture by myself, excluded them one by one, and set the linux firewall and setenforce to the lowest level.

   service iptables stop

           setenforce 0

           netstat -an View the network port

          lsof -i :port, use lsof -i :port to see the program running on the specified port, as well as the current connection.

          In the end, it was found that the firewall of the computer room limited the port of the DB.

   Reason found.

   It seems that sometimes, you can't just see if you can ping.

       

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326352386&siteId=291194637