区块链技术eos开发

nodeos 运行参数翻译

2018-04-26  本文已影响58人  剑有偏锋
./nodeos -h
Application Options:

Config Options for eosio::account_history_plugin: 
  -f [ --filter_on_accounts ] arg       Track only transactions whose scopes 
                                        involve the listed accounts. Default is
                                        to track all transactions.
                                        =》只跟踪其范围涉及所列帐户的交易。默认是跟踪所有交易。
  --get-transactions-time-limit arg (=3)
                                        Limits the maximum time (in 
                                        milliseconds) processing a single 
                                        get_transactions call.
                                        =》处理一个get_transactions 调用的最大时间(毫秒)

Config Options for eosio::chain_plugin:
  --genesis-json arg (="genesis.json")  File to read Genesis State from
                                        =》读取创世状态文件的路径
  --genesis-timestamp arg               override the initial timestamp in the 
                                        Genesis State file
                                        =》覆盖覆盖创世状态文件中的初始时间戳
  --block-log-dir arg (="blocks")       the location of the block log (absolute
                                        path or relative to application data 
                                        dir)
                                        =》块日志的位置(绝对路径或相对于应用程序数据目录)
  -c [ --checkpoint ] arg               Pairs of [BLOCK_NUM,BLOCK_ID] that 
                                        should be enforced as checkpoints.
                                        =》应该作为检查点执行的[BLOCK_NUM,BLOCK_ID]对。
  --max-reversible-block-time arg (=-1) Limits the maximum time (in 
                                        milliseconds) that a reversible block 
                                        is allowed to run before being 
                                        considered invalid
                                        =》限制可逆块在被认为无效之前允许运行的最长时间(以毫秒为单位)
  --max-pending-transaction-time arg (=-1)
                                        Limits the maximum time (in 
                                        milliseconds) that is allowed a pushed 
                                        transaction's code to execute before 
                                        being considered invalid
                                        =》限制被推送事务的代码在被视为无效之前执行的最大时间(以毫秒为单位)
  --max-deferred-transaction-time arg (=20)
                                        Limits the maximum time (in 
                                        milliseconds) that is allowed a to push
                                        deferred transactions at the start of a
                                        block
                                        =》限制允许a在块开始时推送延期交易的最长时间(以毫秒为单位)
  --wasm-runtime wavm/binaryen          Override default WASM runtime
                                        =》覆盖默认的WASM运行时

Command Line Options for eosio::chain_plugin:
  --replay-blockchain                   clear chain database and replay all 
                                        blocks
                                        =》清除链式数据库并重放所有块
  --resync-blockchain                   clear chain database and block log
                                        =》清除链式数据库和块日志
  --skip-transaction-signatures         Disable transaction signature 
                                        verification. ONLY for TESTING.
                                        =》禁用交易签名验证。(仅供测试)

Config Options for eosio::faucet_testnet_plugin:
  --faucet-create-interval-ms arg (=1000)
                                        Time to wait, in milliseconds, between 
                                        creating next faucet created account.
                                        =》在创建下一个龙头创建的帐户之间等待的时间(以毫秒为单位)。
  --faucet-name arg (=faucet)           Name to use as creator for faucet 
                                        created accounts.
                                        =》用作水龙头创建帐户的创建者名称。
  --faucet-private-key arg (=["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"])
                                        [public key, WIF private key] for 
                                        signing for faucet creator account
                                        =》签署水龙头创建者账户[公钥,私钥]。

Config Options for eosio::http_plugin:
  --http-server-address arg (=127.0.0.1:8888)
                                        The local IP and port to listen for 
                                        incoming http connections.
                                        =》侦听传入的http连接的本地IP和端口
  --access-control-allow-origin arg     Specify the Access-Control-Allow-Origin
                                        to be returned on each request.
                                        =》指定每个请求返回的Access-Control-Allow-Origin。
  --access-control-allow-headers arg    Specify the Access-Control-Allow-Header
                                        s to be returned on each request.
                                        =》指定要在每个请求上返回的Access-Control-Allow-Headers。
  --access-control-allow-credentials    Specify if Access-Control-Allow-Credent
                                        ials: true should be returned on each 
                                        request.
                                        =》指定Access-Control-Allow-Credentials:每个请求上应该返回true.

Config Options for eosio::mongo_db_plugin:
  -q [ --mongodb-queue-size ] arg (=256)
                                        The queue size between nodeos and 
                                        MongoDB plugin thread.
                                        =》nodeos和MongoDB插件线程之间的队列大小。
  -m [ --mongodb-uri ] arg              MongoDB URI connection string, see: 
                                        https://docs.mongodb.com/master/referen
                                        ce/connection-string/. If not specified
                                        then plugin is disabled. Default 
                                        database 'EOS' is used if not specified
                                        in URI.
                                        =》MongoDB URI连接字符串,请参阅:https://docs.mongodb.com/master/reference/connection-string /。如果未指定,则插件被禁用。如果未在URI中指定,则使用缺省数据库'EOS'。

Config Options for eosio::net_plugin:
  --p2p-listen-endpoint arg (=0.0.0.0:9876)
                                        The actual host:port used to listen for
                                        incoming p2p connections.
                                        =》用于监听传入p2p连接的实际主机:端口。
  --p2p-server-address arg              An externally accessible host:port for 
                                        identifying this node. Defaults to 
                                        p2p-listen-endpoint.
                                        =》外部可访问的主机:端口用于识别此节点。默认为p2p-listen-endpoint。
  --p2p-peer-address arg                The public endpoint of a peer node to 
                                        connect to. Use multiple 
                                        p2p-peer-address options as needed to 
                                        compose a network.
                                        =》连接到对等节点的公共端点。根据需要使用多个p2p-peer-address选项来组成网络。
  --agent-name arg (="EOS Test Agent")  The name supplied to identify this node
                                        amongst the peers.
                                        =》提供的名称用于标识同级中的此节点。
  --allowed-connection arg (=any)       Can be 'any' or 'producers' or 
                                        'specified' or 'none'. If 'specified', 
                                        peer-key must be specified at least 
                                        once. If only 'producers', peer-key is 
                                        not required. 'producers' and 
                                        'specified' may be combined.
                                        =》可以是“any”或“producers”或“specified”或“none”。如果'specified',对等密钥必须至少指定一次。如果只有'producers',对等密钥不是必需的。 'producers'和'specified'可以合并。
  --peer-key arg                        Optional public key of peer allowed to 
                                        connect.  May be used multiple times.
                                        =》允许连接的对等体的可选公钥。可能会多次使用。
  --peer-private-key arg                Tuple of [PublicKey, WIF private key] 
                                        (may specify multiple times)
                                        =》允许连接的对等体的可选公钥(可多次定义)
  --log-level-net-plugin arg (=info)    Log level: one of 'all', 'debug', 
                                        'info', 'warn', 'error', or 'off'
                                        =》日志等级,可以几个之一 'all', 'debug', 
                                        'info', 'warn', 'error',  'off'
  --max-clients arg (=25)               Maximum number of clients from which 
                                        connections are accepted, use 0 for no 
                                        limit
                                        =》从中接受连接的最大客户端数量,使用0表示无限制
  --connection-cleanup-period arg (=30) number of seconds to wait before 
                                        cleaning up dead connections
                                        =》清理死连接之前要等待的秒数
  --network-version-match arg (=0)      True to require exact match of peer 
                                        network version.
                                        =》如为真,则要求对等网络版本的精确匹配。
  --sync-fetch-span arg (=100)          number of blocks to retrieve in a chunk
                                        from any individual peer during 
                                        synchronization
                                        =》在同步过程中从任何单个对等体的块中检索的块数

Config Options for eosio::producer_plugin:

  -e [ --enable-stale-production ]      Enable block production, even if the 
                                        chain is stale.
                                        =》启用块生产,即使链是陈旧的。
  --required-participation arg (=33)    Percent of producers (0-100) that must 
                                        be participating in order to produce 
                                        blocks
                                        =》要求产生的区块时,生产者必须达到的参与百分比 (0-100)
  -p [ --producer-name ] arg            ID of producer controlled by this node 
                                        (e.g. inita; may specify multiple 
                                        times)
                                        =》由该节点控制的生产者的ID(例如,inita;可以指定多次)
  --private-key arg (=["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"])
                                        Tuple of [public key, WIF private key] 
                                        (may specify multiple times)
                                        =》公私钥对(可重复定义)

Config Options for eosio::wallet_plugin:
  --wallet-dir arg (=".")               The path of the wallet files (absolute 
                                        path or relative to application data 
                                        dir)
                                        =》钱包文件的路径(绝对路径或相对于应用程序数据目录)
  --unlock-timeout arg                  Timeout for unlocked wallet in seconds.
                                        Wallets will automatically lock after 
                                        specified number of seconds of 
                                        inactivity. Activity is defined as any 
                                        wallet command e.g. list-wallets.
                                        =》
在几秒钟内解锁钱包超时。在指定秒数的不活动之后,钱包将自动锁定。活动被定义为任何钱包命令,例如list-wallets
  --eosio-key arg                       eosio key that will be imported 
                                        automatically when a wallet is created.
                                        =》将在创建钱包时自动导入的eosio密钥。

Application Config Options:
  --plugin arg                          Plugin(s) to enable, may be specified 
                                        multiple times
                                        =》指定要启用的插件,可定义多测

Application Command Line Options:
  -h [ --help ]                         Print this help message and exit.
                                        =》打印帮助信息并推测
  -v [ --version ]                      Print version information.
                                        =》打印版本信息
  --print-default-config                Print default configuration template
                                        =》打印默认配置模板
  -d [ --data-dir ] arg                 Directory containing program runtime 
                                        data
                                        =》
  --config-dir arg                      Directory containing configuration 
                                        files such as config.ini
                                        =》包含程序运行时数据的目录
  -c [ --config ] arg (=config.ini)     Configuration file name relative to 
                                        config-dir
                                        =》相对于config-dir的配置文件名称
  -l [ --logconf ] arg (=logging.json)  Logging configuration file name/path 
                                        for library users
                                        =》记录库用户的配置文件名称/路径
上一篇下一篇

猜你喜欢

热点阅读