0

背景:我正在使用 Gnome 3.36.8 在 Ubuntu 20.04.2 LTS 上开发一个由微服务和 Google Datastore db 组成的应用程序。我不确定这个问题是否出在 Ubuntu、Gnome、我缺乏 Bash 知识或 Google Datastore 上。我通过这些说明和 Datastore 模拟器安装了 Google Cloud SDK :apt-get install google-cloud-sdk-datastore-emulator

我使用以下方法手动启动了我的数据库:gcloud beta emulators datastore start

当我在终端中执行此操作时,一切正常,我可以按 control + c 来杀死它。

现在我编写了一个 bash 脚本来一次性启动微服务、数据存储数据库和前端(在StackOverflow 帖子的帮助下):

#!/bin/sh
x-terminal-emulator -T "Google Datastore Emulator" -e "gcloud beta emulators datastore start"
# Other node services

起初,这似乎很有吸引力,它使用 Google 数据存储模拟器打开了一个终端窗口。但是,它不允许我用控制 c 杀死它。每当我关闭终端时,它似乎仍在运行: 谷歌数据存储模拟器消失了

我也不能gcloud beta emulators datastore start再次运行,它会在一个奇怪的主机名和端口上启动。

我似乎无法杀死它kill 7788。每当我运行 ps -u $USER 时,我都会在 cloud_datastore 进程之后看到“”: cloud_datastore 已失效

我试过用谷歌搜索什么是失效的进程。维基百科告诉我,长时间保持“失效”或“僵尸”状态的进程通常是错误并导致资源泄漏。

我会看看我是否能找到正确的 Google 论坛来报告这个潜在的错误,但如果这可以很容易地修复,请帮助我!

4

0 回答 0