Unity WebGL Apache Windows本地服务端搭建
1.下载 Tomcat
Tomcat下载:https://tomcat.apache.org/
2. 下载 JDK
JDK 下载:https://www.oracle.com/java/technologies/downloads/
4. 设置系统变量
1.新建JAVA_HOME
D:\Program Files\Java\jdk-17.0.2
2.新建CLASSPATH
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
3.原Path新增两条:
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
1.详细请见菜鸟教程
在网页输入localhost:8080 可测试 是否安装成功
在cmd 输入Java可检测环境是否安装成功
5. 运行UnityWebGL程序
6. 启动Tomcat:E:\apache-tomcat-10.0.18\bin\startup.bat
UnityWebGL程序放入位置:WebGL包拷贝到\apache-tomcat-10.0.18\webapps
UnityWebGL程序访问地址:http://localhost:8080/xinHaoShan/index.html
关闭Tomcat:E:\apache-tomcat-10.0.18\bin\shutdown.bat
原文链接:https://blog.csdn.net/weixin_44876165/article/details/124046742?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165934461816781790724367%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165934461816781790724367&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-24-124046742-null-null.nonecase&utm_term=%E6%90%AD%E5%BB%BAcdn
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/7511