安裝laravel/Horizon

安裝laravel/Horizon運行的話必須需要php的pcntl的擴展,然而這個擴展在windows上暫時還不支持,所以直接composer

是無法安裝成功的,首先使用composer require "laravel/horizon:~1.0"--ignore-platform-reqs就能安裝成功。但還是無法運行的,因爲那個擴展的原因。運行php artisan horizon 之後會報 

Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()

的錯誤。現在暫時還沒有解決方案。windows上還是不能運行。

github的問題網址:https://github.com/laravel/horizon/issues/154

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章