搞了一下午,居然是防火墙的事情,redhat7设置方法如下 sudo firewall-cmd --add-port=8081/tcp 转载于:https://www.cnblogs.com/sachie/p/6165400.html