简体   繁体   English

Netbeans Java Web应用程序部署到Web主机

[英]Netbeans Java web app deployment to web host

I have created a java web application in netbeans using a glassfish server and mySql database. 我已经使用glassfish服务器和mySql数据库在netbeans中创建了一个Java Web应用程序。

The web application is working correctly in my local environment and now i want to deploy to my host name which ive purchase from 1and1. 该Web应用程序在我的本地环境中正常运行,现在我想部署到从1and1购买的主机名。 Ive transfer my Web folder to my host name via FTP but im literally stuck now. 我已经通过FTP将我的Web文件夹传输到我的主机名,但是我现在确实卡住了。

I know i have to somehow add the glassfish server to that host name but i dont how to do this. 我知道我必须以某种方式将glassfish服务器添加到该主机名,但是我不知道如何执行此操作。

can anyone help me please. 谁能帮我。

thanks in advance 提前致谢

Basically if you a remote control it is not a big deal. 基本上,如果您使用遥控器,那没什么大不了的。

basic steps would be - install mysql - install jdk - install glassfish 基本步骤是-安装mysql-安装jdk-安装glassfish

Assuming you have a *nix based server. 假设您有一台基于* nix的服务器。

Here you can find steps related to GF3 installation. 在这里您可以找到与GF3安装相关的步骤。 However I do not like the way GF installation described there. 但是我不喜欢那里描述的GF安装方式。 Moreover I do not think you are going to have X environment on your server. 而且,我认为您的服务器上不会有X环境。 So if you need to install GF3 you can follow installation for JDK and install GF3 from a zip file. 因此,如果您需要安装GF3,则可以遵循JDK的安装并从zip文件安装GF3。 The process is described in the the installation tutorial for GF4 . GF4安装教程中描述了该过程。 It would be the same for GF3. GF3也是一样。 There also you may find instructions how to install JDK7. 您也可以找到有关如何安装JDK7的说明。 At least one important step is missing in that tutorial however. 但是,该教程至少缺少一个重要步骤。 If you do all the steps from that tutorial, your GF instance would not start when OS is restarted. 如果执行了该教程中的所有步骤,则在重新启动OS时,GF实例将不会启动。 You can find how to fix this in the official documentation . 您可以在官方文档中找到解决方法。 There you can find how you can configure your GF to start as a service. 在这里,您可以找到如何配置GF作为服务启动的方法。 The steps are the same for v3 and v4. v3和v4的步骤相同。

Basically I provided the first two links because of additional information like how to enable WEB console for remote access. 基本上,我提供了前两个链接是因为有其他信息,例如如何启用WEB控制台进行远程访问。 You cannot access it right after installation. 安装后无法立即访问它。 You have to enable it by changing admin's password and.. but you find the description there. 您必须通过更改管理员密码来启用它,然后在此处找到说明。

You can find many blogs tutorials even videos if you google a bit. 如果您有点儿Google,那么您可以找到许多博客教程甚至视频。 Tutorial for ubuntu more informative from my point. 从我的角度来看, ubuntu的教程内容更丰富。 Many steps are not specific for ubuntu and could be reused for other distributions. 许多步骤不是ubuntu特有的,可以重用于其他发行版。

More thoughts about where and how to install GF here on stackoverflow 有关在此处如何在哪里安装GF的更多想法

Just in case couple of links for mysql 5 installation 以防万一mysql 5安装的几个链接

official documentation 官方文件

tutorial for different distributions 不同发行版的教程

Just in case. 以防万一。 You can use putty for remote access. 您可以使用腻子进行远程访问。 If your server is configured to allow this, you would be able to connect. 如果将服务器配置为允许这样做,则可以连接。 You may want to ask support team to clarify it. 您可能要请支持团队进行澄清。

For windows it is even simpler 对于Windows,它甚至更简单

you can download an installer from here for GF4 of from here for GF3. 您可以从下载的安装位置为从GF4 这里的GF3。 You also can download a zip file and install GF as a service. 您还可以下载一个zip文件并安装GF作为服务。 See official documentation and step-bystep simplified tutorial with pictures here . 请参阅官方文档图片和步bystep简化教程这里

I think jdk and mysql would not be a problem on windows based server 我认为基于Windows的服务器上的jdk和mysql不会有问题

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

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