You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
439 B

  1. #!/usr/bin/env php
  2. <?PHP
  3. /*
  4. * @Descripttion:
  5. * @version:
  6. * @Author: Blobt
  7. * @Date: 2020-07-30 09:48:18
  8. * @LastEditors: Blobt
  9. * @LastEditTime: 2020-07-30 14:20:19
  10. */
  11. include __DIR__."/../vendor/autoload.php";
  12. use blobt\airpc\RpcServer;
  13. $server = new RpcServer("0.0.0.0", 5188);
  14. $server->reactorNum = 1;
  15. $server->workerNum = 1;
  16. $server->entryPoint = '/home/blobt/Documents/dev/php/yii2-app-rpc/rpc/index.php';
  17. $server->run();
  18. ?>