如何使用HHVM启动Yii2项目?
运行
hhvm yii serve
但我收到以下错误:
Server started on http://localhost:8080/
Document root is "/home/hgminh95/Documents/pk-homepage-server/web"
Quit the server with CTRL-C or COMMAND-C.
Error in command line: unrecognised option '-S'
Usage:
/usr/bin/hhvm [-m <mode>] [<options>] [<arg1>] [<arg2>] ...
答案 0 :(得分:0)
HHVM仅限Linux。对于Windows和MacOS,它没有任何东西可以在没有JIT编译器的情况下以限制模式运行。
检查一下 https://yii2-cookbook.readthedocs.io/performance-hhvm/
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm