CesiumJS安装部署和运行HelloWorld

CesiumJS   官网下载

当前下载的是1.55版本,基本每一个月更新一版,解压后的文件目录:

直接部署到Apache,然后访问:http://localhost:8088/Cesium_1.55/Apps/HelloWorld.html

可以正常运行官网的helloworld.html

官方建议用node.js来运行服务器:

1.navigate to the root directory and run the following command to install the dependencies:

2.Start the web server by executing the command:

如果要公开在外面浏览(上面的启动方法仅能localhost访问),这样写:

node server.js --port 8080 --public 192.172.6.45:8080

3.访问http://localhost:8080/

4.访问:http://localhost:8080/Apps/HelloWorld.html

猜你喜欢

转载自blog.csdn.net/aganliang/article/details/88142942