2

尝试将“IPFS 守护程序”添加为窗口服务。

这是我尝试过的:

SC 命令:

sc.exe create IPFS binpath= "\"C:\Program Files\go-ipfs\ipfs.exe\" \"daemon\"" DisplayName= "IPFS" start= "auto"

输出:

[SC] CreateService SUCCESS

service.msc 中的“执行路径”反映为:

"C:\Program Files\go-ipfs\ipfs.exe" "daemon"

如果我输入 cmd,此路径是正确的并运行 IPFS 守护程序。

但是当我用“NET START IPFS”启动服务时,它说

The service is not responding to the control function.
More help is available by typing NET HELPMSG 2186.
4

1 回答 1

0

您正在尝试将 ipfs.exe 直接用作 Windows 服务,但 ipfs.exe 不支持。它只是一个普通的 Windows 可执行文件。

我认为您将不得不使用诸如https://github.com/kohsuke/winsw之类的服务包装工具将 ipfs 二进制文件包装为 Windows 服务。

于 2017-11-08T08:22:37.963 回答