Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Command description: Enter createBucket to create a bucket according to the BucketName. Each bucket can be set with a different redundancy policy. The redundancy policy is multi-replica or erasure code. The redundancy level can be determined by adjusting the number of the data block and parity block. 3 data blocks and erasure code of 2 parity blocks are used by default, the loss of two blocks is tolerable.
mefs provides dedicated encrypted storage space (LFS) for each user, each storage space contains multiple buckets, buckets are containers that users use to store objects, and each bucket contains multiple objects. We can think of objects as files. The redundancy policy of a bucket can be specified at creation time (all objects stored in the bucket use this redundancy policy).
When creating a bucket policy, the value of dc+pc should be less than the number of providers in the group where the current user belongs. Users can modify the number of dc and pc according to their own needs.
Command description: Enter listBuckets to display all buckets created by this user, including the name of each bucket, creation time, redundancy policy and redundancy parameters (DataCount, ParityCount).
Command description: If BucketName exists, entering headBucket displays its creation time, redundancy policy and redundancy parameters. If BucketName does not exist, it displays that bucket does not exist.
View Docker Installation section to install docker.
Node home directory: ~/memo_user as an example:
Node data storage directory: ~/memo_user_data as an example.
The node home directory is the user directory and the node storage directory is the user node data storage directory.
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.
Explanation of parameters:
wallet default: Get the default wallet address
Starting node needs both the Memo and cMemo token.
To get the cMemo token, there is one faucet, https://faucet.metamemo.one/
This is the MemoChain information.
Memochain information
Chain RPC: https://chain.metamemo.one:8501/
Currency name: CMEMO
Chain ID: 985
Chain browser: https://scan.metamemo.one:8080/
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:
https://join.slack.com/t/memo-nru9073/shared_invite/zt-sruhyryo-suc689Nza3z8boa4JkaLqw
Default in web, account: admin; password: memoriae.
Please make sure your user home directory and password are the same as in the previous step.
If you have any technical problems, please join our Discord server for help. https://discord.gg/YXQQwPhMpq
Command description: Enter command net info to view the network id (cid), ip address and port of the current node.
Command description: Enter command net peers to view the network connection information of the current 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.
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.
This document is detailed about how to use user node, the installation guide is in another document. Use LFS command to operate upload and download functions.
Introduction
This command creates, uploads, downloads, and views a collection of containers and files for the user.
Usage
Subcommands
Introduction
This command creates buckets
Usage
Options
Example
Bucket name: test, storage policy: erasure code, number of data blocks: 10, number of check blocks 5
Introduction
This command is used to view the status of all buckets
Usage
Introduction
This command is used to view all the information of the specified bucket, the following is an example (test is the bucket name)
Usage
Introduction
This command specifies the file for upload
Usage
USAGE: mefs-user lfs putObject [command options] [arguments...]
OPTIONS: --bucket value, --bn value use bucket name --object value, --on value file name after upload --path value upload file path --etag value select verification method (default: md5) --enc value Select encryption method (default: aes) --help, -h View help
Introduction
This command is used to view the specified file status
Usage
Example
Introduction
Download the file to the specified path
Usage
Example
Introduction
View all file information of a specified bucket
Usage
Example
Introductioin
delete specified file
Usage
Example
Introduction
Download objects using rpc
Usage
Example
Introduction
Display the storage information of the node
Example
Introduction
View the bucket user list
Example
Command description: Entering putObject to upload an object named ObjectName into BucketName; if the bucket does not exist, it will display that the bucket does not exist; if the object already exists, it will display that the object already exists.
Command description: Enter listObjects to list all objects in BucketName, including object size, creation time, MD5 value, and the most recent challenge time.
Command description: Enter getObject to download an object named ObjectName from BucketName; if the bucket does not exist, it displays that the bucket does not exist; if the object does not exist, it displays that the object does not exist.
Mefs commands can all be operated using HTTP.
Configuration
Before mefs-user starts, confirm the following configuration is set in the config.json:
Then restart mefs-user to use HTTP to operate.
Usage
A command similar to the following:
The corresponding HTTP request is:
IP is the network address of the machine where mefs-user is started. The port defaults to 5001. If cross-domain access is configured before running, you can use the external network IP to access, otherwise you can only access it through 127.0.0.1.
The output is in standard JSON format:
The output is in standard JSON format:
Enter "mefs-user-install" file folder, double click install.exe for regestering user.
Starting node needs both the Memo and cMemo token.
To get the cMemo token, there is one faucet, https://faucet.metamemo.one/
This is the MemoChain information.
Memochain information
Chain RPC: https://chain.metamemo.one:8501/
Currency name: CMEMO
Chain ID: 985
Chain browser: https://scan.metamemo.one:8080/
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:
https://join.slack.com/t/memo-nru9073/shared_invite/zt-sruhyryo-suc689Nza3z8boa4JkaLqw
If you want to check the account balance,Please refer to this link
How to checking the account balance
When your installation completed, the content of installation folder is as follows:
Mmeanwhile there are 2 more icons appeared on your desktop.
The running window will show that user node is starting, and data is being synchronized. This will take about 5 hours to complete, please be patient.
Now you can see two "mefs-user.exe" in the task manager shows the user node and gateway is running.
Open URL http://127.0.0.1:9090 in your web browser to use user WebUI
Open the account.txt in the memouser folder to view your login imformation
Caution: If this is the first run of your User node, you need to wait about 10~20 minutes for node to complete synchronization. If sync is not complete yet, you will get a "lfs service is read only" error.
After that you can begin create bucket.
Multiple users can share one mefs's running program.
After mefs is started, other users can also be started as a proxy.
Parameter explanation:
After mefs is started, other users can also be shut down by proxy.
Parameter explanation:
Cli
Http
The user whose address is the public key obtains the file named ObjectName from the BucketName bucket.
Cli
Http
If you want to be the Provider, you can set a detailed basic configuration information.
If you have spare storage space and bandwidth and want to make some profit from it, you can participate in Memo as a provider.
8 cores, 16G memory, 2TB storage, 20Mbps bandwidth;
External network IP, port 4001 is usable;
Docker environment;
Linux System
Run 'memo_start' icon on desktop to start user.
View Docker Installation section to install docker.
Node home directory:
Using "~/memo_provider" as an example:
Node data storage directory: ~/memo_user_data as an example.
The node home directory is the provider directory and the node storage directory is the provider node data storage directory.
Explanation of parameters:
--password: Enter your provider node password, the default is memoriae.
Init: Execute the initialize command, which will generate your wallet address and generate a configuration file.
Explanation of parameters:
wallet default: Get the default wallet address
Starting node needs both the Memo and cMemo token.
To get the cMemo token, there is one faucet, https://faucet.metamemo.one/
This is the MemoChain information.
Memochain information
Chain RPC: https://chain.metamemo.one:8501/
Currency name: CMEMO
Chain ID: 985
Chain browser: https://scan.metamemo.one:8080/
To get Memo Tokens for your wallet, you can transfer some Memo Tokens from other wallet address which has enough Memo Tokens. The provider needs minimum 30 Memo Tokens.
Join our discussing with Slack Link:
https://join.slack.com/t/memo-nru9073/shared_invite/zt-sruhyryo-suc689Nza3z8boa4JkaLqw
Please make sure your user home directory and password are the same as in the previous step.
If there is any deploy issue. Please join the deploy-node discussing with Slack Link:
https://join.slack.com/t/memo-nru9073/shared_invite/zt-sruhyryo-suc689Nza3z8boa4JkaLqw
• When participating as a provider node, you need to execute the declare command (declare the public network address) for communication between nodes;
• Get your public network ip+port ready, I will show you below;
• Note: Execute the command in the container;
• The command mefs-provider info can only be executed after the sync information displays as true. Although the synchronization can be successful without doing so, it will not be able to communicate with other nodes.
Parameter explanation
X.X.X.X is your public ip address.
Port 4007 is your public network port, and the mapped port is the host's port 4001 (-p 4001: the first port 4001 of the boot parameter).
Command description: Enter command net info to view the network id (cid), ip address and port of the current node.
Command description: Enter command net peers to view the network connection information of the current 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.
COMMON MISTAKES
ERROR: not have tx fee on chain
Solution: Check the node, both of the cMemo token balance, and the memo balance. The Memo token balance must meet the minimum amount for node startup.
ERROR: execution reversed: can't unpledge during 180d
The node pledge amount needs to be withdrawn 180 days after the last pledge.
If the log reports that the meta and state files are missing, you can perform the Recover operation.
mefs-provider recover db --path /home/mcloud/provider2/.memo-provider/meta
mefs-provider recover db --path /home/mcloud/provider2/.memo-provider/state
Before starting the memo, you must install docker.
Check the version of docker installed
Start docker and pull hello-world to verify whether the installation is successful
Since sudo access is required to use docker, enter the password here and it will be started successfully.
Next, run the following command line
You can see the container being downloaded from the remote for testing: Pulling from library/hello-world
When you see the message: Hello from Docker! It means the docker is successfully installed.
Before starting the memo, you must install docker.
2、Download docker for windows