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
  • User Agent Start
  • User Agent Stop
  • Usage
  • Example

Was this helpful?

Export as PDF
  1. Start Usage

Gateway Mode

PreviousHow to use userNextHTTP Operation

Last updated 1 year ago

Was this helpful?

Multiple users can share one mefs's running program.

After mefs is started, other users can also be started as a proxy.

mefs-user lfs start <addr> --sk=<private key> --pwd=<password>

Parameter explanation:

addr:account address;

--sk:the private key of the user; if the private key corresponding to the address does not match, the address of the private key shall prevail;

--pwd:user's password;

After mefs is started, other users can also be shut down by proxy.

mefs-user lfs kill <addr> --pwd=<password>

Parameter explanation:

addr:account address

--pwd:account password

  • Cli

mefs-user rootcmd subcmd arg1 op1=arg2 --addr=<public key>
  • Http

curl "http://<ip>:5001/api/v0/<roocmd>/<subcmd>?arg=<arg1>&op1=<arg2>&addr=<public key

The user whose address is the public key obtains the file named ObjectName from the BucketName bucket.

  • Cli

mefs_user lfs get_object <BucketName> <ObjectName> --addr=<public key>
  • Http

curl  "http://127.0.0.1:5001/api/v0/lfs/get_object?arg=<BucketName>&arg=<ObjectName>&addr=<public key>"

User Agent Start
User Agent Stop
Usage
Example