MEMO Storage
  • Introduction
    • MEMO and MEFS
      • MEMO Website
    • Concepts
      • Characteristics and Advantages
      • How to check the balance
      • How to Pledge MEMO
      • MEMO TOKEN ECONOMICS
      • Payment of Memo
      • Requirements
      • Role Introduction
    • Version Introduction
      • Version1-Phecda
      • Version2-Megrez
        • Difference from Phecda
      • Latest Version-Megrez 2.5
  • Start Usage
    • Start user in windows
    • Start user in docker
      • How to start
      • How to use
        • Bucket Operation
        • Upload and Download
    • Start provider in docker
      • How to start
      • Hardware Recommendation
    • How to use user
    • Gateway Mode
    • HTTP Operation
    • Docker Installation
      • For Windows
      • For Linux
  • Commandline Usage
    • Keeper Commandline Mannual
    • Provider Commandline Mannual
    • User Commandline Mannual
  • FAQ
    • Check Log File
    • Common
    • Connection
    • Startup problems
    • Disconnection problems
    • Others
    • Q&A for V1
      • Common
      • User
      • Provider
      • Check Log File
      • Others
  • RAFI
  • Version Update
    • Upgrade to Megrez2.5
    • Volunteer Recruitment Plan
  • Resources
Powered by GitBook
On this page
  • Step by step
  • Step 1: Environment Deployment
  • Step 2: Set up the node directory
  • Step 3: Pull image(User)
  • Step 4: Initialization(Create new wallet)
  • Step 5: Get wallet address
  • Step 6: Top up
  • Step 7: Modify the configuration file
  • Step 8:Start node
  • Check running status
  • Step 1: Enter the container
  • Step 2: Check user information
  • Check net status
  • Get local node network information
  • Get the network connection information of the node
  • Connect to any node
  • Restart after poweroff

Was this helpful?

Export as PDF
  1. Start Usage
  2. Start user in docker

How to start

Step by step

Step 1: Environment Deployment

View Docker Installation section to install docker.

Step 2: Set up the node directory

Node home directory: ~/memo_user as an example:

export MEFS_PATH=~/memo_user

Node data storage directory: ~/memo_user_data as an example.

export MEFS_DATA=~/memo_user_data

The node home directory is the user directory and the node storage directory is the user node data storage directory.

Step 3: Pull image(User)

docker pull memoio/mefs-user:latest

Step 4: Initialization(Create new wallet)

docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest init --password=memoriae

Explanation of parameters:

--password: Enter your user node password, the default is memoriae.

init: Execute the initialization command, which will generate your wallet address and generate a configuration file.

Step 5: Get wallet address

docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest wallet default

Explanation of parameters:

wallet default: Get the default wallet address

Step 6: Top up

Starting node needs both the Memo and cMemo token.

This is the MemoChain information.

Memochain information

Currency name: CMEMO

Chain ID: 985

To get Memo Tokens for your wallet, you can transfer some Memo Tokens from other wallet address which has enough Memo Tokens. The user needs minimum 1 Memo Tokens.

Join our discussing with Slack Link:

Step 7: Modify the configuration file

docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.version --value=3
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.endPoint --value="https://chain.metamemo.one:8501"
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest config set --key=contract.roleContract --value="0xbd16029A7126C91ED42E9157dc7BADD2B3a81189"
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest bootstrap clear
docker run --rm -v $MEFS_PATH:/root --entrypoint mefs-user memoio/mefs-user:latest bootstrap add "/ip4/183.240.197.189/tcp/14006/p2p/12D3KooWAMpZPwfJopVnp99oqp4zhbjE1G3LFAkcjfBuiyzyCmv7"

Step 8:Start node

docker run -d -v $MEFS_PATH:/root -v $MEFS_DATA:/root/data -e PASSWORD="memoriae" -e PRICE=250000 -e MEFS_PATH=/root/.memo-user -e GROUP=3 -e SWARM_PORT=4001 -e DATA_PATH=/root/data --name mefs-user -e GATEWAY=true -e GATEWAY_USERNAME=admin -e GATEWAY_PASSWORD=memoriae -p 8080:8080 memoio/mefs-user:latest
  • Default in web, account: admin; password: memoriae.

  • Please make sure your user home directory and password are the same as in the previous step.

Check running status

Step 1: Enter the container

docker exec -it mefs-user bash

Step 2: Check user information

mefs-user info
----------- Information -----------        
2022-03-23 10:42:36 CST		#Current time
2.1.0-alpha+git.e759ff0+2022-03-22.15:51:16CST		#mefs-user version information
----------- Network Information -----------		#network information
ID:  12D3KooWBpPPzk9srHVVU4kkVF1RPJi9nYNgV4e6Yjjd4PGr5qrk   #network id
IP:  [/ip4/10.2.2.61/tcp/18003]  #Current node network information, 18003 is the swarm-port port, used for node communication
Type: Private
----------- Sync Information -----------		
Status: true, Slot: 322885, Time: 2022-03-23 10:42:30 CST	#Please check if your sync status is true, if it is false, please check your node network
Height Synced: 2640, Remote: 2640		#sync status
Challenge Epoch: 21 2022-03-23 09:55:30 CST		 
----------- Role Information -----------		
ID:  29		
Type:  User		
Wallet:  0xD2EC305EA80C6FCEF315029A806f52F27f3fB29a		#Wallet address
Balance: 998.25 Gwei (tx fee), 998815392.06 NanoMemo (Erc20), 148075.99 NanoMemo (in fs)		#balance
Data Stored: size 115294208 byte (109.95 MiB), price 113500000
----------- Group Information -----------		
EndPoint:  http://119.147.213.220:8191		
Contract Address:  0xCa2C4103bd5679F43eC9E277C2bAf5598f94Fe6D		 
Fs Address:  0xFB9FF16EB4093aa8fFf762F2dF4E61d3A7532Af9		
ID:  1		#group id
Security Level:  7
Size:  109.95 MiB		 
Price:  113500000		
Keepers: 10, Providers: 16, Users: 4		#The number of nodes in the current group
----------- Pledge Information ----------		
Pledge: 0 AttoMemo, 26.00 Memo (total pledge), 26.00 Memo (total in pool)		#current pledge information			
----------- Lfs Information ----------		
Status: writable
Buckets:  1
Used: 1.82 GiB
Raw Size: 109.95 MiB
Confirmed Size: 109.95 MiB
OnChain Size: 109.95 MiB
Need Pay: 987173.29 NanoMemo
Paid: 987173.29 NanoMemo

Check net status

Get local node network information

Command description: Enter command net info to view the network id (cid), ip address and port of the current node.

mefs-user net info
Network ID 12D3KooWBpPPzk9srHVVU4kkVF1RPJi9nYNgV4e6Yjjd4PGr5qrk, IP [/ip4/10.2.2.61/tcp/18003], Type: Private

Get the network connection information of the node

Command description: Enter command net peers to view the network connection information of the current node.

mefs-user net peers
12D3KooWMrZTqoU8febMxxxxxxxxxCeqLQy1XCU9QcjP1YWAXVi [/ip4/10.2.2.66/tcp/8003]
12D3KooWC2PmhSrU1VexxxxxxxxxtwvQuFZj3vPfjdfebAuJQtc [/ip4/10.2.2.66/tcp/8004]
12D3KooWR74K1v6naGxxxxxxxxxVS88h4X93bMnquoRiEDdLJTx [/ip4/10.2.2.61/tcp/8003]
12D3KooWSzzwJ7es1xxxxxxxxxPaqei3TUHnNZDmWTELSA7NJXQ [/ip4/10.2.2.62/tcp/18003]
12D3KooWG8PjbbN9xxxxxxxxx2oYFtjeQ8XnqvnEqfrB4AiW7eJ [/ip4/10.2.2.65/tcp/8003]
12D3KooWRjamwQtxxxxxxxxxb44AAXLNy9CB7u1FL2eC5QZekpF [/ip4/1.182.0.0/tcp/24071]
...

Connect to any node

Command description: Enter command net connect to connect to any node; if there is any problem with your node network, please enter command net connect to connect to our public node.

mefs-user net connect /ip4/10.2.x.x/tcp/8004/p2p/12D3KooWAykMmqu951ziotQiAYTN6SwfvBd1dsejSSak2jdSwryF

Restart after poweroff

If the account has been started, and then the computer has been shutted down, Docker, or "Windows PowerShell" was been closed, if you need to restart MEMO again, you need to open Docker first, then run the command line " docker start mefs-user" to start.

docker start mefs-user
PreviousStart user in dockerNextHow to use

Last updated 1 year ago

Was this helpful?

To get the cMemo token, there is one faucet,

Chain RPC:

Chain browser:

If you have any technical problems, please join our Discord server for help.

https://faucet.metamemo.one/
https://chain.metamemo.one:8501/
https://scan.metamemo.one:8080/
https://join.slack.com/t/memo-nru9073/shared_invite/zt-sruhyryo-suc689Nza3z8boa4JkaLqw
https://discord.gg/YXQQwPhMpq