如何将Java Web应用程序添加到主服务器 [英] how to add java web application to main server

查看:46
本文介绍了如何将Java Web应用程序添加到主服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Java 网络编程的新手.目前我正在我的电脑上使用 tomcat 开发一个 java web 应用程序.谁能建议如何将此应用程序添加到主网络,以便其他用户也可以使用此应用程序.

I m new to java web programming . Currently I am developing a java web application using tomcat in my pc. Can anyone suggest how to add this application to main network , such that other users can also use this application.

使用的软件 - tomcat、netbeans 和 mysql

Softwares used - tomcat ,netbeans and mysql

谢谢.

推荐答案

首先制作你的项目的 .war 文件,检查所有配置是否正常.

First of all make .war file of your project, check that all configuration okay or not.

进入tomcat的bin目录,停止Tomcat服务

make war 然后 tomcat 目录 ->webapp 然后将该 war 文件粘贴到其中并启动服务.

Make war then tomcat directory -> webapp then paste that war file to it and start the service.

现在检查您的防火墙是否允许端口8080 Inboubnd rules.

Now Check that your firewall allows port 8080 Inboubnd rules or not.

在防火墙提前设置中,在入站规则中创建新规则,然后选择端口,然后在此下添加8080.

In firewall advance setting In inbound rules create new rule then select port then add 8080 in this next next ok.

现在从任何其他 PC 中输入您的 PC 的 IP 进行检查,例如 192.168.1.10:8080/appname.

Now from any other PC check by typing your PC 's IP like 192.168.1.10:8080/appname.

如果有问题,请告诉我.

If got problem post me.

这篇关于如何将Java Web应用程序添加到主服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆