Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ipfs in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to install ipfs for linux, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Download ipfs

# cd / usr/local/ipfs/

# wget https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_linux-amd64.tar.gz

# tar-zxvf go-ipfs_v0.4.15_linux-amd64.tar.gz

Second, install ipfs

# cd / usr/local/ipfs/go-ipfs/

# sudo. / install.sh

Moved. / ipfs to / usr/local/bin

# sudo / usr/local/bin/ipfs init

# ipfs version

Ipfs version 0.4.15

3. Start ipfs

# nohup / usr/local/bin/ipfs daemon &

4. Configure ipfs

Cross-domain resource sharing CORS configuration:

Ipfs config-json API.HTTPHeaders.Access-Control-Allow-Methods'["PUT", "GET", "POST", "OPTIONS"]'

Ipfs config-json API.HTTPHeaders.Access-Control-Allow-Origin'["*"]'

# export EDITOR=/usr/bin/vim

# / usr/local/bin/ipfs config edit

If you need to support remote connections, change the configuration from 127.0.0.1 to 0.0.0.0.

There is another method that has not been used before:

Ssh-L 5001:localhost:5001-L 4001:localhost:4001-L 8080:localhost:8080 root@192.168.33.81

After carrying out the above command. It is equivalent to forwarding the data accessing the local ports 5001, 4001 and 8080 to the port corresponding to the access to 192.168.33.81. The middle is connected through a ssh tunnel.

This is the answer to the question about how to install ipfs in linux. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report