[英]I am not able to connect to mysql server running on Google Compute engine from another instance using internal IP
[英]I have problem to connect me glassfish server from compute engine
我在谷歌計算引擎和glassfish服務器中使用ubuntu 18.04 lts,如下圖所示:
已經為gcp vm配置了靜態IP:
而且我還添加了端口8080以能夠進行連接,並且沒有任何東西讓我一直報錯,請嘗試這樣的方法:http: //34.94.96.242 :8080和這樣的方法:http: //34.94.96.242 : 4848而且我仍然沒有訪問
您是否嘗試過在Compute Engine中訪問您的glassfish服務器?我的意思是使用例如:
curl本地主機:[PORT]
在終端上並查看輸出,如果確定,則安裝正確,並且可能缺少防火牆規則,因此必須使用特定端口創建它。
例如,為了在端口22中啟用流量以使用SSH,您需要在雲shell中執行以下命令:
gcloud計算防火牆規則創建default-allow-ssh --allow tcp:22
或打開端口8080
gcloud計算防火牆規則創建默認值-allow-glassfish --allow tcp:808
請查看此文檔,了解如何在GCP中逐步設置防火牆規則。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.