云 sql windows 7 上的代理即服务

cloud sql proxy as a service on windows 7

运行 "cloud_sql_proxy" 作为 "windows 7" 操作系统中的一项服务 我有二进制 "cloud_sql_proxy",我可以用它访问 Google 云平台中 mysql 服务器的实例,就在那里。 但我需要确保 Google 提供的可执行文件始终是 运行,因此我的应用程序/客户端程序不会丢失这些服务的 link。

知道我该怎么做吗?

根据我从你的问题中了解到的情况,你似乎想问“我如何 运行 cloud_sql_proxy_xXX.exe 当我启动 Windows 7 时?”。我可以告诉你,代理不会 运行 作为一项服务,所以你每次启动机器时都必须执行它。幸运的是,运行在 Windows 7 的启动时启动程序比 Windows 的更高版本(例如 8.X 及更高版本)相对容易。

对于Windows 7,您可以按照提供的指导步骤进行操作here。本质上,您只需将要 运行 的 .exe 文件放入“开始”菜单下的“启动”文件夹中。 (即:打开“开始”菜单>“所有程序”>“启动”>将文件拖到此处)

每次启动 Windows 7 本地计算机时,这应该执行“cloud_sql_proxy_xXX.exe”。

GCP 的文档字面意思是: "For the Windows operating system, run the proxy as a Windows Service. In general, the proxy should have the same uptime requirements as your application process." 所以你的回答是不可接受的。