BERT-RPC服务器:Ernie
jopen
10年前
Ernie 是一个 Erlang/Ruby BERT-RPC 服务器。使用一个 Erlang 服务器来接受连接请求,并委派到用 Erlang 或者 Ruby 编写的自定义模块。
Ernie 支持多个异构模块,例如你可以一起运行 10 个 Ruby 模块和一个 Erlang 模块。
使用方法:
Usage: ernie [command] [options] -c, --config CONFIG Config file. -p, --port PORT Port. -l, --log-level Log level (0-4). -a, --access-log LOGFILE Access log file. -d, --detached Run as a daemon. -P, --pidfile PIDFILE Location to write pid file. --name NAME Erlang process name. --sname SNAME Erlang short process name. -E, --erlang ERLANG_OPTIONS Options passed to Erlang VM. Commands: <none> Start an Ernie server. reload-handlers Gracefully reload all of the external handlers and use the new code for all subsequent requests. stats Print a list of connection and handler statistics. Examples: ernie -d -p 9999 -c example.cfg Start the ernie server in the background on port 9999 using the example.cfg configuration file. ernie reload-handlers -p 9999 Reload the handlers for the ernie server currently running on port 9999. ernie -c example.cfg -E '-run mymodule' Start the ernie server with an additional erlang module called 'mymodule'