简体   繁体   English

如何将Java Web应用程序添加到主服务器

[英]how to add java web application to main server

I m new to java web programming . 我是Java Web编程的新手。 Currently I am developing a java web application using tomcat in my pc. 目前,我正在使用PC中的tomcat开发Java Web应用程序。 Can anyone suggest how to add this application to main network , such that other users can also use this application. 任何人都可以建议如何将此应用程序添加到主网络,以便其他用户也可以使用此应用程序。

Softwares used - tomcat ,netbeans and mysql 所使用的软件-tomcat,netbeans和mysql

Thanks . 谢谢 。

First of all make .war file of your project, check that all configuration okay or not. 首先制作项目的.war文件,检查所有配置是否正确。

Stop Tomcat Service by going in bin directory of tomcat. 通过进入tomcat的bin目录来Stop Tomcat Service

Make war then tomcat directory -> webapp then paste that war file to it and start the service. 进行战争,然后进入tomcat directory -> webapp然后将该war文件粘贴到其中并启动服务。

Now Check that your firewall allows port 8080 Inboubnd rules or not. 现在,检查防火墙是否允许端口8080 Inboubnd rules

In firewall advance setting In inbound rules create new rule then select port then add 8080 in this next next ok. 在防火墙高级设置中,在入站规则中创建新规则,然后选择端口,然后在下一步中添加8080

Now from any other PC check by typing your PC 's IP like 192.168.1.10:8080/appname . 现在,从任何其他PC上,通过键入PC的IP(例如192.168.1.10:8080/appname

If got problem post me. 如果有问题请给我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM