Login
Discover
Waves
Communities
Write
Login
Signup
lemooljiang
@lemooljiang
76
Designer , Poet , Technology enthusiasts
Followers
2368
Following
95
Follow
Email digest
Resource Credits
Available
Used
Location
Guangzhou
Created
2016-07-16 04:39
RSS Feed
Subscribe
Comments
Blog
Posts
Comments
Communities
Wallet
lemooljiang
steemjiang
7y
RE: 镜像的世界,新人该如何自处?
当然可以通过特殊的方法同时注册的!
$ 0.000
0
lemooljiang
cn
7y
RE: 归来时已是换了人间
是啊,太久了!
$ 0.224
1
lemooljiang
cn
7y
RE: Hive 123:给中文区的HIVE 分叉简要说明
这么长的黑名单,这是要自绝于世啊!
lemooljiang
wherein
7y
RE: 武汉封城物资抢购中
今年这年不易过啊!
lemooljiang
cn
7y
RE: 孤独的诗人(5)红尘的赞歌
亮点:“我刚从武汉回来!”
lemooljiang
wherein
7y
RE: 事情越来越严重,成“...
生化危机?!
lemooljiang
STEEM CN/中文
7y
RE: 对过年意义的理解 My Understanding of the Meaning of Spending the Spring Festival
新年快乐!
lemooljiang
starnote
7y
RE: IPFS实用指南
cnpm install videostream --save <video ref="myvideo" controls autoplay="autoplay" width="90%" ></video> import VideoStream from 'videostream' Play(hash){ //得到视频hash播放
lemooljiang
starnote
7y
RE: IPFS实用指南
和上传图片是一个函数,在细节上略有不同。 <b-form-file placeholder="上传mp4视频" browse-text="文件" v-model="file" class="mb-2" accept=".mp4" ></b-form-file> //上传视频 let
lemooljiang
starnote
7y
RE: IPFS实用指南
<b-form-file placeholder="上传封面图(建议尺寸:400*300像素)" browse-text="文件" v-model="file" class="title" accept=".jpg, .jpeg, .png, .webp, .gif" >
lemooljiang
starnote
7y
RE: IPFS实用指南
cnpm install ipfs-http-client --save //main.js import ipfsClient from 'ipfs-http-client' const ipfs = ipfsClient({ host: 'example.com', port: '9001', protocol: 'https' }) Vue.prototype.ipfs = ipfs //挂载到全局
lemooljiang
starnote
7y
RE: IPFS实用指南
前端使用vue环境,使用js-ipfs-http-client客户端来访问服务器,进行上传/查看文件(图片、视频等)。
lemooljiang
starnote
7y
RE: IPFS实用指南
IPFS是不提供https服务的,所以,必须使用nginx的反向代理提供https! 前提:nginx的https已由Certbot配置好了,再加上以下代码即可。 server { server_name example.com; location / { proxy_pass } error_page 500 502 503 504 /50x.html; location = /50x.html
lemooljiang
starnote
7y
RE: IPFS实用指南
用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
lemooljiang
starnote
7y
RE: IPFS实用指南
//需要改动的地方 "Addresses": { "API": "/ip4/127.0.0.1/tcp/9000", "Announce": [], "Gateway": "/ip4/127.0.0.1/tcp/8080", "StorageMax":
lemooljiang
starnote
7y
RE: IPFS实用指南
cd /root/.ipfs cat config { "Identity": { "PeerID": "QmcXMfffffffffff", "PrivKey": "CAASqfffffffffffffff" }, "Datastore": { "StorageMax":
lemooljiang
starnote
7y
RE: IPFS实用指南
wget tar -zxvf go-ipfs_v0.4.22_linux-amd64.tar.gz cd go-ipfs mv ipfs /usr/local/bin/ipfs ipfs version ipfs --help //初始化,/root/.ipfs ipfs init ipfs id //自己的id ipfs daemon //开启进程
lemooljiang
starnote
7y
RE: IPFS实用指南
服务器端开启daemon,设置访问端口,用于文件存储。
lemooljiang
starnote
7y
RE: IPFS实用指南
用IPFS提供web服务,需要有两部分,一是服务器端开启daemon, 二是前端用js来访问服务器。这与一般的网站服务是一样的。所以,在此我分为服务器端和前端两部分来实现IPFS的服务。
lemooljiang
cn
7y
RE: 假期学习下智能合约
能对大家有点用处就可以啰!
← Latest
Older →