public function restart()
    {
        $httpServer = $this->getHttpServer();

        // 是否已启动
        if ($httpServer->isRunning()) {
            $this->stop();
        }

        // 重启默认是守护进程
        $httpServer->setDaemonize();
        $this->start();
    }