ufw allow 8000:9000/tcp -->允许其它主机使用tcp协议访问本机8000-9000端口
ufw status # 查看ufw防火墙是否在工作,查看使用中的规则ufw enable # 启动ufw防火墙