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
452 B

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