![更改本地主机设置](https://linux22.com/image/779438/%E6%9B%B4%E6%94%B9%E6%9C%AC%E5%9C%B0%E4%B8%BB%E6%9C%BA%E8%AE%BE%E7%BD%AE.png)
我按照这篇博文中提到的步骤进行操作。
https://aws.amazon.com/blogs/opensource/dashboards-as-code-a-new-approach-to-visualizing-aws-apis/
并能够启动该服务。
$ steampipe dashboard
[ Wait ] Loading Workspace
[ Wait ] Starting Dashboard Server
[ Message ] Workspace loaded
[ Message ] Initialization complete
[ Ready ] Dashboard server started on 9194 and listening on local
[ Message ] Visit http://localhost:9194
[ Message ] Press Ctrl+C to exit
但我需要将其托管在 some-company.com:9194 上,而不是 localhost 上。可以吗?
答案1
在目录中~/.steampipe/config
找到database
并编辑监听网络
options "database" {
port = 9193 # any valid, open port number
listen = "network" # local, network
search_path = "aws,aws2,gcp,gcp2" # comma-separated string; an exact search_path
}