[英]Google Cloud SDK documentation
I have just started looking at Google Cloud.我刚刚开始关注 Google Cloud。 I have been following this tutorial to try to setup the system.
我一直在按照本教程尝试设置系统。
I can successfully download the tar file, I can successfully run install.sh, however when I run the following command I get some unusual behaviour:我可以成功下载 tar 文件,我可以成功运行 install.sh,但是当我运行以下命令时,我会遇到一些异常行为:
./google-cloud-sdk/bin/gcloud init
1) I agree to login - fine. 1) 我同意登录 - 没问题。
2) It brings up a page where I need to choose one of my accounts, which I do. 2) 它会打开一个页面,我需要在其中选择我的帐户之一,我会这样做。
3) It brings up a website saying: 3)它打开一个网站说:
Google Cloud SDK wants to access your Google Account
I then hit Allow.然后我点击允许。
4) This is where it all goes wrong. 4)这就是一切出错的地方。 It then tries to go to a website such as the following:
然后它会尝试访问如下网站:
http://localhost:8085/?code=4/tQD6sXNDlkpcdFUctB7ZgKKuj7T1Aiqev4o7zGaDVpctit6zrqFfWbnAXSo_zFTVjo4_VyxrUlUtq8IgsRAS7M0&scope=openid%20email%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/cloud-platform%20https://www.googleapis.com/auth/appengine.admin%20https://www.googleapis.com/auth/compute%20https://www.googleapis.com/auth/accounts.reauth%20https://www.googleapis.com/auth/plus.me
The website displays something saying 'This site can't be reached'.该网站显示“无法访问此站点”。
This seems strange to me.这对我来说似乎很奇怪。 Why is Google attempting to access http://localhost:8085 ?
为什么 Google 试图访问http://localhost:8085 ? Surely it should be going to some kind of Google site.
当然它应该去某种谷歌网站。
If you could offer any help or advice, I would very much appreciate it.如果您能提供任何帮助或建议,我将不胜感激。 Please bear in mind that I am new to Google Cloud and I would need some very basic help.
请记住,我是 Google Cloud 的新手,需要一些非常基本的帮助。 I am trying to setup a simple website with something like "hello world" with html/css and python.
我正在尝试使用 html/css 和 python 设置一个简单的网站,例如“hello world”。
If you know of any alternative tutorials that work, I would really appreciate it.如果您知道任何有用的替代教程,我将不胜感激。
I had the same problem as you.我和你有同样的问题。 I solved it by using
gcloud auth login --no-launch-browser
我通过使用
gcloud auth login --no-launch-browser
解决了它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.