RE: RE: IPFS实用指南
You are viewing a single comment's thread from:

RE: IPFS实用指南

Words
14
Reading
1 min
Listen
Play
7y

用systemctl管理ipfs的进程和重启等事务

which命令
查看ipfs执行文件的位置:
/usr/local/bin/ipfs

//创建文件
vim /lib/systemd/system/ipfs.service

//粘入代码
[Unit]
Description=JSIPFS Daemon Client
[Service]
ExecStart=/usr/local/bin/ipfs daemon
Restart=always
RestartSec=30
Type=simple
User=root
Group=root
[Install]
WantedBy=multi-user.target

//命令
systemctl daemon-reload
systemctl enable ipfs
开启服务: systemctl start ipfs
关闭服务: systemctl stop ipfs
查看状态: systemctl status ipfs  //q退出
查看进程:ps -aux | grep ipfs
@lemooljiang: | Ecency