1.查看端口号
netstat -tulnp | grep :9501
2.杀死被占用的端口
kill pid
3.hyperf 安装扩展
composer require "hyperf/validation:3.1.*" -W
composer require "hyperf/swagger:3.1.*" -W
4.hyperf发布配置
php bin/hyperf.php vendor:publish hyperf/validation
php bin/hyperf.php vendor:publish hyperf/swagger