1. 首先要添加安全組規則
步驟請看阿里雲文檔 https://help.aliyun.com/document_detail/25471.html
2. 添加端口
1.首先開啓防火牆命令
systemctl start firewalld
2. 添加端口命令
firewall-cmd --add-port=9099/tcp --permanent
3. 重新載入配置
firewall-cmd --reload
4. 查看端口列表
firewall-cmd --list-all
5. 關閉防火牆
systemctl stop firewalld
3.設置ip
服務端使用私有ip,前端使用公有ip ------注意此步驟