[英]Installing a game on Tomcat. Newb here
this might be a tall order or it might be ridiculously simple. 这可能是一个艰巨的任务,或者可能非常简单。 I wanted to run this game on my website: https://github.com/ajanata/PretendYoureXyzzy
我想在我的网站上运行此游戏: https : //github.com/ajanata/PretendYoureXyzzy
Unfortunately I have no clue how to make something like this work. 不幸的是,我不知道如何制作这样的作品。 There didn't seem to be an installation file, so I can only imagine it's painfully obvious to anyone familiar with this sort of thing.
似乎没有安装文件,所以我只能想象对于熟悉这种情况的任何人来说这都是痛苦的。 I recently ordered a trial of a shared Tomcat server, since I'm assuming that's needed to run all the Java goodies.
我最近订购了一个共享Tomcat服务器的试用版,因为我认为这是运行所有Java必需品所必需的。
If there are any simple instructions I should follow to install this, it would be much appreciated if you could share them! 如果有任何简单的说明可以安装,请与您分享!
You need to download the source from the Github link you provided and then download Eclipse - Java EE . 您需要从提供的Github 链接下载源代码,然后下载Eclipse-Java EE 。 You then open Eclipse and choose
File->Import->General->Existing Projects Into Workspace
and choose the folder you just downloaded. 然后打开Eclipse,然后选择
File->Import->General->Existing Projects Into Workspace
然后选择刚下载的文件夹。 You can then choose Export->Web->WAR file
and export the WAR file. 然后,您可以选择
Export->Web->WAR file
并导出WAR文件。
You then download and setup Tomcat as described here (ignore the parts after Tomcat is running and you can access it at http://localhost:8080
) and install the WAR as described here . 然后,按照此处所述下载并设置Tomcat(忽略Tomcat运行后的各个部分,您可以从
http://localhost:8080
访问它)并按照此处所述安装WAR。
If you are feeling exceptionally lazy I have built the war here . 如果您感到异常懒惰,我已在这里建立了战争。 You just need to drop it into the
webapps
folder in your Tomcat installation and then restart your server. 您只需要将其放入Tomcat安装中的
webapps
文件夹中,然后重新启动服务器即可。 You can then access it at: 然后,您可以在以下位置访问它:
http://localhost:8080/cah
. http://localhost:8080/cah
。
Hard to say without looking deeper into the project, if they create a .war file somehow, just copy the .war file into [tomcat home]/webapps directory and your application will be deployed. 如果不深入研究项目,很难说,如果他们以某种方式创建.war文件,只需将.war文件复制到[tomcat home] / webapps目录中,即可部署您的应用程序。 You can then acces it at yourmachine:8080/warname where warname == the name of the war file without the .war extension.
然后,您可以在yourmachine:8080 / warname上访问它,其中warname == war文件的名称,不带.war扩展名。
There appears to be a SQL script with the project as well, not sure if there is some database you might need to setup which could get tricky. 该项目中似乎也有一个SQL脚本,不确定是否可能需要设置一些数据库,而这可能会变得棘手。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.