【问题标题】:IPFS as window service (win 7)IPFS 作为窗口服务(win 7)
【发布时间】:2017-07-01 08:24:28
【问题描述】:

尝试将“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.

【问题讨论】:

    标签: service window ipfs


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2011-12-16
      • 1970-01-01
      • 2011-02-21
      • 1970-01-01
      • 2014-05-03
      • 2011-02-04
      • 1970-01-01
      • 2013-01-01
      • 1970-01-01
      相关资源
      最近更新 更多