How to Restart Swoole Service? Quick Guide
To restart the Swoole service, follow these steps:
- Stop the server.
 
$server = new Swoole\Server('127.0.0.1', 9501);
// 设置运行参数...
$server->start();
// 在某个地方调用 shutdown() 方法
$server->shutdown();
- Use the Ctrl + C key combination in the terminal to stop the currently running Swoole service.
 - To restart the Swoole service in the terminal, for example:
 
php your_swoole_script.php
By following the above steps, you can restart the Swoole service.