正在尝试将"IPFS守护程序“添加为窗口服务。
这是我尝试过的:
SC命令:
sc.exe create IPFS binpath= "\"C:\Program Files\go-ipfs\ipfs.exe\" \"daemon\"" DisplayName= "IPFS" start= "auto"输出:
[SC] CreateService SUCCESSservice.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.发布于 2017-11-08 16:22:38
您正尝试将ipfs.exe直接用作windows服务,但ipfs.exe不支持此操作。它只是一个普通的windows可执行文件。
我认为您必须使用诸如https://github.com/kohsuke/winsw之类的服务包装工具来将ipfs二进制文件包装为windows服务。
https://stackoverflow.com/questions/44858876
复制相似问题