- RPC server 服务命令
- 使用
- 使用
RPC server 服务命令
在项目根目录执行如下命令
$ php bin/swoft rpcUsage:bin/swoft rpc:COMMAND [--opt ...] [arg ...]Global Options:--debug Setting the application runtime debug level(0 - 4)--no-color Disable color/ANSI for message output-h, --help Display this help message-V, --version Show application version informationCommands:reload Reload worker processesrestart Restart the http serverstart Start the http serverstop Stop the currently running serverExample:bin/swoft rpc:start Start the rpc serverbin/swoft rpc:stop Stop the rpc server
Rpc 的命令都在 Commands
- reload 重新加载
worker进程 - restart 重启 RPC 服务器
- start 启动 RPC 服务器
- stop 停止 RPC 服务器
使用
- 前台运行
$ php bin/swoft rpc:startInformation Panel*********************************************************************** RPC | Listen: 0.0.0.0:18307, type: TCP, mode: Process, worker: 1**********************************************************************RPC server start success !
- 后台运行
$ php bin/swoft rpc:start -dInformation Panel*********************************************************************** RPC | Listen: 0.0.0.0:18307, type: TCP, mode: Process, worker: 1**********************************************************************RPC server start success !
