首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在树莓派上部署Java web应用程序

如何在树莓派上部署Java web应用程序
EN

Stack Overflow用户
提问于 2015-07-27 17:30:49
回答 2查看 5.3K关注 0票数 0

我已经使用netbeans 8创建了一个java web应用程序,这个项目运行良好。

我需要一个帮助来把我的项目放到树莓派上,这样当我在web浏览器中输入ip地址时,它就会运行我的java web应用程序。

还有什么是我需要的东西,使我的树莓派作为一个网络服务器。

在我的树莓派中,我已经有了java8、apache2、tomcat8。

EN

回答 2

Stack Overflow用户

发布于 2018-08-29 17:49:30

从/ https://tomcat.apache.org/download-80.cgi#8.0.53

  • $ cd Tomcat8 $HOME

  • $ tar xzf apache-tomcat-8.0.53.tar.gz

  • $ mv apache-tomcat-8.0.53添加sudo $HOME

  • $ tar xzf $HOME/tomcat8/bin

  • $ cd startup.sh

  • Open

  • -tomcat8

  • $ cd tomcat sh tomcat- http://localhost:8080/manager/html用户名:管理员密码: admin

  • 选择WAR文件下的.war文件来部署部分

  • 打开浏览器并运行您的应用程序,例如.http://localhost:8080/FirstJspProject/HelloWorld.jsp
票数 1
EN

Stack Overflow用户

发布于 2018-02-26 00:31:17

步骤1按照Digital Ocean中的说明安装tomcat。

代码语言:javascript
复制
Step 2 After installing in netbeans, Go to Run->Clean and build.
Step 3 Goto Project folder and find the projectname.war file in dist folder.
Step 4 Rename the war to ROOT.war.
Step 5 Assuming you have followed all the procedure as mentioned in digital 
ocean from step 1, goto http://localhost:8080/
Step 6. Click Manage App .
Step 7  At the bottom there will be a browse button under upload war. Click it
Step 8  After selecting ROOT.war . Click deploy.

这就对了。现在从本地网络中的任何浏览器输入http://ip_of_pi:8080来查看您的站点。

Port forward it以全局访问它。(可选)。

附言:-如果你在步骤1的指南中发现了curl -O这一行的错误,可以通过手动从Tomcat官网下载tomcat.tar到Tomcat's Official Site文件夹来替换这一步骤。

希望这能帮助到某个人

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31649531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档