Skip to content

Configuration

Niklaus Schen edited this page Nov 12, 2023 · 3 revisions

Configuration

The configuration of Meproc is very simple, with only the following configuration options.

Conf = [
    'ip': '0.0.0.0',
    'port': '8606',
    'log_level': 'debug',
    'log_dir': '/tmp',
    'web': [
        'ip': '127.0.0.1',
        'port': '8606',
    ],
];
  1. ip is the address that Meproc service listens to HTTP requests on.
  2. port is the port where the Meproc service listens for HTTP requests.
  3. log_level is the log output level of Meproc. There are four log levels, ranked from low to high:
  • debug
  • info
  • warn
  • error
  1. log_dir is the path to the directory where the log files are located. This directory contains not only the log file for Meproc (Meproc.log), but also the log files of all task processes' output content.
  2. web is used for Ajax requests from the web page to access Meproc. The ip and port mentioned here are the external IP and port of Meproc.

That's all.

Clone this wiki locally