在GCS上设置存储桶的日志记录

3
尝试在GCS存储桶上设置日志记录。每次输入设置日志记录的命令时,都会收到以下错误:"Command exception: "logging" command does not support "file://" URLs. did you mean to usea gs:// URL?" 是我的测试日志存储桶出错了还是我要覆盖的存储桶有问题?

enter image description here


欢迎来到SO。请参考http://stackoverflow.com/help/how-to-ask。 - VC1
我认为您的问题在于传递了文字[-o logs]。您需要完全删除它,或删除括号并选择日志前缀的值。 - jterrace
在花了一些时间研究后,有人向我指出了这一点。谢谢回复。下次做这个的时候得多睡觉了。 - Tony Ugarek
1个回答

2
我遵循这个教程https://cloud.google.com/nodejs/getting-started/using-cloud-storage时,遇到了同样的错误。
解决方法很简单。我忘记在gs:后面加上双斜杠://

错误命令:

$ gsutil mb gs:tony-project-123
$ gsutil defacl set public-read gs:tony-project-123

正确的命令:

$ gsutil mb gs://tony-project-123
$ gsutil defacl set public-read gs://tony-project-123

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接