[英]How to start a blockchain wallet service automatically?
Writting 书面方式
sudo blockchain-wallet-service start --port 3000
on the command line will start the local service, but I ca not find out how to run it forever. 在命令行上将启动本地服务,但我不知道如何永远运行它。 Can anyone tell me how to do that?
谁能告诉我怎么做?
That's what I am searching for but I can't find anything. 这就是我正在寻找的东西,但我找不到任何东西。 Currently, I am starting the service using exec() every time I make an API call as follow.
目前,我每次进行API调用时都会使用exec()启动服务,如下所示。 I know it's not recommended though.
我知道不建议这样做。
<?php
// start blockchain services
exec("/usr/bin/sudo /usr/bin/service blockchain-wallet-service start --port 3000");
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.