{"id":2291,"date":"2022-05-08T18:28:48","date_gmt":"2022-05-08T09:28:48","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=2291"},"modified":"2022-05-09T11:37:20","modified_gmt":"2022-05-09T02:37:20","slug":"run-the-ipfs-daemon-in-the-background","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=2291","title":{"rendered":"<small>Run the IPFS daemon in the background<\/small>"},"content":{"rendered":"<p>\uff11\uff0eRun the IPFS daemon in the background<\/p>\n<pre>\r\n# ipfs daemon &\r\n<\/pre>\n<p>\uff12\uff0eRegister for service<\/p>\n<pre>\r\n# echo \"[Unit]\r\nDescription=IPFS\r\nAfter=network.target\r\n[Service]\r\nExecStart=\/usr\/local\/bin\/ipfs daemon --migrate\r\nRestart=always\r\nUser=root\r\nGroup=root\r\nRestart=on-failure\r\nKillSignal=SIGINT\r\n[Install]\r\nWantedBy=multi-user.target\" > \/lib\/systemd\/system\/ipfs.service\r\n#\r\n# systemctl daemon-reload\r\n# systemctl enable ipfs\r\n# systemctl start ipfs\r\n# ps -aux|grep ipfs\r\nroot        6070 31.3  0.5 1421384 94088 ?       Ssl  09:40   0:00 \/usr\/local\/bin\/ipfs daemon --migrate\r\nroot        6081  0.0  0.0   6400  2236 pts\/1    S+   09:40   0:00 grep --color=auto ipfs\r\n#\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0eRun the IPFS daemon in the background # ipfs daemon &#038; \uff12\uff0eRegister for service # echo &#8220;[Unit] Description=IPFS&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2291"}],"collection":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2291"}],"version-history":[{"count":5,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2291\/revisions"}],"predecessor-version":[{"id":2336,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2291\/revisions\/2336"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}