Run mvsd
Usage: mvsd [-dhistv] [--datadir value] [--config value] [--ui value] |
Configure mvs.conf
You can find several commonly used configuration files at https://github.com/mvs-org/metaverse/tree/master/etc:
- mvs.conf - The main net configuration file
- mvs-test.conf - The test net configuration files
- mvs-full-setting-template.conf - The configuration file for the complete parameter template
mvs.conf sample content:# mvs configuration in common usage in MAINNET
# mvs.conf default in path as below
# Windows : %HOMEPATH%\AppData\Roaming\Metaverse
# Apple OSX : ~/Library/Application\ Support/Metaverse
# Linux/Uinx: ~/.metaverse
[network]
# The port for incoming connections, defaults to 5251 (15251 for testnet).
inbound_port = 5251
# The target number of incoming network connections, defaults to 8.
inbound_connections = 256
# The target number of outgoing network connections, defaults to 8.
outbound_connections = 32
# The cached peer hosts when startup
hosts_file = hosts.cache
# The debug log file path, defaults to 'debug.log'.
debug_file = debug.log
# The error log file path, defaults to 'error.log'.
error_file = error.log
# The advertised public address of this node, defaults to none.
#self = your_own_public_ip_address:port
# IP address to disallow as a peer, multiple entries allowed.
#blacklist = 127.0.0.1
# Persistent host:port channels, multiple entries allowed.
#peer = seed.getmvs.org:5251
[database]
# The blockchain database directory, defaults to 'mainnet' of below default path.
# Windows : %HOMEPATH%\AppData\Roaming\Metaverse
# Apple OSX : ~/Library/Application\ Support/Metaverse
# Linux/Uinx: ~/.metaverse
# Eg:
# directory = D:\MVS\ChainData\Metaverse
# directory = /var/local/Metaverse
[server]
# The maximum number of query worker threads per endpoint, defaults to 1.
query_workers = 1
# local http RPC call listen port
mongoose_listen = 127.0.0.1:8820
# Write service requests to the log, defaults to false.
log_level = DEBUG
Change the data folder location
Let’s take the Windows environment as an example.
Create the configuration file mvs.conf in the following directory:
%HOMEPATH%\AppData\Roaming\Metaverse
The mvs.conf file configuration is as follows:
[database]
directory = D:\MVS\ChainData\Metaverse
You can fill in your own path in the above path,
or you can download the configuration file:
http://newmetaverse.org/conf/mvs.conf
For new users, it is recommended to install blockdata-inside version.
Copy the “% HOMEPATH% \ AppData \ Roaming \ Metaverse” directory to the target directory on disk D.
(The folder name must be Metaverse.)