-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Niklaus Schen edited this page Nov 15, 2023
·
3 revisions
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',
],
'bootstrap_cmd': '',
];
-
ip
is the address that Meproc service listens to HTTP requests on. -
port
is the port where the Meproc service listens for HTTP requests. -
log_level
is the log output level of Meproc. There are four log levels, ranked from low to high:
debug
info
warn
error
-
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. -
web
is used for Ajax requests from the web page to access Meproc. Theip
andport
mentioned here are the external IP and port of Meproc. -
bootstrap_cmd
is a shell command that will be automatically executed when Meproc starts. It can be used to automatically start tasks when Meproc starts.
That's all.