云服务器是天翼云,win server 2012的,在云服务器中用 localhost:8080 是可以访问到tomcat的,但是从外部死活访问不了。网上的方法基本上都试过,云服务器的安全组设置成全端口全协议入方向出方向均开放,服务器的防火墙也是关闭状态。还是不行。。。
实在是穷途末路,不知道是什么问题。。。
云服务器的公网弹性ip是14.116.x.x,私有ip是10.10.x.x。
外网可以用ping命令ping通云服务器的弹性ip。
求大神出手相助,万分感谢
æç¨çæ¯8080诶ããã
追çï¼1ï¼é¦å xxx.jspæä»¶å¿ é¡»æ¾å¨WebContentç®å½ä¸é¢ï¼èä¸è½æ¾å¨WEB_INFç®å½ä¹ä¸
ï¼2ï¼ç¬¬äºä¸ªé®é¢æ¯å¨Stack overflowä¸é¢æ¾å°äºçæ¡ï¼
1ï¼Click on Window > Show view > Server or right click on the server in "Servers" view, select "Properties".2ï¼In the "General" panel, click on the "Switch Location" button.3ï¼The "Location: [workspace metadata]" should replace by something else.4ï¼Open the Overview screen for the server by double clicking it.In the Server locations tab , select "Use Tomcat location".ï¼æ¤æ¶æå¯è½çé¢ä¸ºç°è²ï¼5ï¼Save the configurations and restart the Server.
æ¹æ³éé¢è¯´å°tomcatæ¢æèªå·±çå®è£ çtomcatï¼ä½æ¯çé¢æ¯ç°è²çï¼æä¹åå¢ï¼åæ¥æ¯å 为æ们å°é¡¹ç®é¨ç½²å°äºtomcatä¸é¢ï¼å æ¤éè¦ç§»é¤é¡¹ç®ï¼å¨é¡¹ç®ä¸é¢å³å»ââRemove
æ¤æ¶Server locationsçé¢å³å¯ç¨ï¼"Deploy Path"åé¢çå¼é»è®¤æ¯"wtpwebapps",æå®æ¹æ"webapps",ï¼è¿éé¢æ¹æwebappsä¹å°±æ¯æ¾å°èªå·±å®è£ tomcatçç®å½ï¼åªä¸è¿æ¢äºååä¹å软件å¯ä»¥èªå·±å®ä½å°ç®å½ï¼
å°æ¤ï¼é®é¢å°±æå®äºï¼å ¥æä¸é¢ä¸¤ä¸ªæ¹æ³æå ¨é¨é½æ²¡æç¨ã
ï¼3ï¼å³ä½¿eclipseä¸çtomcatæå¡å¨æå¼äºï¼ä¹æ²¡æï¼å¿ é¡»æå¤é¨çtomcatæå¡å¨æå¼ã