Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows services 如何阻止Mercurial';s";hg serve-d“;Windows下的服务?_Windows Services_Mercurial - Fatal编程技术网

Windows services 如何阻止Mercurial';s";hg serve-d“;Windows下的服务?

Windows services 如何阻止Mercurial';s";hg serve-d“;Windows下的服务?,windows-services,mercurial,Windows Services,Mercurial,我在技术上很在行,但在服务器/守护进程方面没有丰富的经验(我是个Windows操作系统的家伙,所以……命令行让我感到害怕) 我使用hgserve-d命令启动了Mercurial服务器,一切正常 现在,我想停止它,但找不到一个进程来杀死它。有人知道进程名称或相对简单的CLI命令来完成吗?这里有一个通过命令行停止和启动Mercurial服务器的链接 您要查找的信息位于页面底部。您是否尝试访问“服务”GUI?不确定mercurial是否会出现,但值得一试 开始->管理工具->服务 如果没有显示管理工

我在技术上很在行,但在服务器/守护进程方面没有丰富的经验(我是个Windows操作系统的家伙,所以……命令行让我感到害怕)

我使用hgserve-d命令启动了Mercurial服务器,一切正常


现在,我想停止它,但找不到一个进程来杀死它。有人知道进程名称或相对简单的CLI命令来完成吗?

这里有一个通过命令行停止和启动Mercurial服务器的链接

您要查找的信息位于页面底部。

您是否尝试访问“服务”GUI?不确定mercurial是否会出现,但值得一试

开始->管理工具->服务

如果没有显示管理工具,请右键单击任务栏,单击属性,单击“开始菜单”并自定义。然后选中“显示管理工具”。这是来自内存的,因为我们的IT部门阻止我们普通用户这样做:-)


祝你好运

你可以选择以下方式之一:

1:您必须在窗口任务管理器中进入“进程”选项卡,并尝试终止名为hg.exe的进程,其描述为Mecurial Distributed SCM。 注意:我将ps-W | grep hg发送给cygwin以查找它。希望这种方式能对你有所帮助

2:另一种方式,您可以使用ToitorseHg来启动和停止服务器,而不是使用命令行hgserve

[打开ToToTorSehg->Repository->Web服务器]


祝你好运

我遇到了同样的问题,运行“netstat-ptcp-ano”命令给了我使用服务器运行端口的进程Id,该进程是“thgw.exe”。然后,我使用Windows Process Explorer结束该过程。