我已经使用netbeans 8创建了一个java web应用程序,这个项目运行良好。
我需要一个帮助来把我的项目放到树莓派上,这样当我在web浏览器中输入ip地址时,它就会运行我的java web应用程序。
还有什么是我需要的东西,使我的树莓派作为一个网络服务器。
在我的树莓派中,我已经有了java8、apache2、tomcat8。
发布于 2018-08-29 17:49:30
从/ https://tomcat.apache.org/download-80.cgi#8.0.53
发布于 2018-02-26 00:31:17
步骤1按照Digital Ocean中的说明安装tomcat。
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文件夹来替换这一步骤。
希望这能帮助到某个人
https://stackoverflow.com/questions/31649531
复制相似问题