我已经启动了一个外部 IP 地址为 35.225.45.169 的 Google Cloud VM:
只是为了检查我是否可以从那里为网站提供服务,我克隆了一个 Hugo 启动的项目并运行hugo server --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313:
kurt_peek@mdm:~/synamdm$ hugo server --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313
Building sites … WARN 2020/01/02 04:36:44 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }
}{{ end }}
| EN
+------------------+----+
Pages | 16
Paginator pages | 0
Non-page files | 0
Static files | 20
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 112 ms
Watching for changes in /home/kurt_peek/synamdm/{content,layouts,static,themes}
Watching for config changes in /home/kurt_peek/synamdm/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://0.0.0.0:1313/ (bind address 0.0.0.0)
Press Ctrl+C to stop
现在我希望能够在我的浏览器中访问http://35.225.45.169:1313/并且该网站是可见的,但我发现它不是;而是操作超时(如下所示的curl命令):
> curl http://35.225.45.169:1313
curl: (7) Failed to connect to 35.225.45.169 port 1313: Operation timed out
我在这里错过了什么吗?我应该如何将这个静态网站从谷歌云计算实例部署到互联网?
慕桂英4014372
PIPIONE
相关分类