fastD icon indicating copy to clipboard operation
fastD copied to clipboard

如何在服务启动成功后,可以实现或者回调自己的一些自定义方法,比如启动日志的采集

Open jinand10 opened this issue 5 years ago • 1 comments

jinand10 avatar May 09 '19 11:05 jinand10

你好,如果你想在服务启动后进行一些自定义的操作,可以重写 Server 的 onStart 方法.

    public function onStart(swoole_server $server)
    {
        parent::onStart($server);

        // 自定义操作...
    }

JanHuang avatar May 09 '19 16:05 JanHuang