Login
Discover
Waves
Communities
Raidstead
Write
Login
Signup
starnote
@starnote
43
Followers
5
Following
0
Follow
Email digest
Resource Credits
Available
Used
Created
2019-11-22 05:56
RSS Feed
Subscribe
Comments
Blog
Posts
Comments
Communities
Wallet
starnote
starnote
7y
RE: Nginx笔记
ubunbu 18.04 sudo apt update sudo apt install nginx nginx -v //nginx version: nginx/1.14.0 (Ubuntu) nginx -V //编译参数 查询nginx主进程号 ps -ef | grep nginx
$ 0.136
1
starnote
starnote
7y
RE: Nginx笔记
当前域名指向设置: ( 点击编辑 ) 主机名 类型 地址 www A(IP指向) 35.249.192.58 @ A(IP指向) 35.249.192.58
$ 0.142
2
starnote
starnote
7y
RE: Nginx笔记
nginx version: nginx/1.14.0 (Ubuntu) 官网
starnote
starnote
7y
RE: test
cnpm install ipfs-http-client --save //main.js import ipfsClient from 'ipfs-http-client' Vue.prototype.ipfs = ipfs //挂载到全局
starnote
starnote
7y
RE: test
ipfs的公共网关还是蛮稀缺的,而且很多在国内是访问不了的,所以,只能多试下啰。 查询公共网关 //图片存储
starnote
starnote
7y
RE: test
cd ~/.jsipfs可以看到ipfs的配置文件“config”。ipfs的所有设置都在这个文件中,可以看下它长什么样: { "Addresses": { "Swarm": [ "/ip4/0.0.0.0/tcp/4002", "/ip4/127.0.0.1/tcp/4003/ws" ], "API":
starnote
starnote
7y
RE: test
Commands: jsipfs add [file...] Add a file to IPFS using the UnixFS data format jsipfs bitswap Interact with the bitswap agent. jsipfs block Manipulate raw IPFS blocks. jsipfs bootstrap Show or edit the
starnote
starnote
7y
RE: test
npm install ipfs --global jsipfs --help jsipfs init //默认仓库路径 ~/.jsipfs (/root/.jsipfs/config) //更改仓库路径,set the $IPFS_PATH environment export IPFS_PATH=/path/to/ipfsrepo
starnote
starnote
7y
RE: test
IPFS的全称是InterPlanetary File System(星际文件系统),从名称上看,这是一个很炫酷、很有野心的项目。简单地说它就是一个点对点的分布式文件系统。官网和github都可以找到所有的相关资料。建议从它的白皮书,和直译中文版本开始了解,后面我们会慢慢地认识它。白皮书上指出了多个应用场景: