本地都可以跑,但是打成war包上传之后服务没跑起来

来源:11-10 打包文件上传到云服务器并且进行tomcat部署

慕仔2032524

2020-07-03

本地都可以跑,服务一切正常。上传war包前,输入服务器外网IP地址可以看到tomcat的小猫。传了war包之后,输入服务器外网IP地址,就报错误。

“An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.”

然后我前端在app.js改了服务器网址来测试,也没法获取服务。

写回答

1回答

风间影月

2020-07-03

看tomcat日志,看看有没有报错。
打包过程务必保证步骤正确。
建议用最简单的hello红包打包测试

0
2
风间影月
很奇怪,总共4个步骤,要不尝试jar试试
2020-07-04
共2条回复

Netty+Spring Boot仿微信-全栈开发高性能后台及客户端

SpringBoot/Netty+MUI全栈开发 同时搞定后台+ Android&iOS

1498 学习 · 684 问题

查看课程