首先确定好lnmp环境已经搭建好
安装
git clone --depth=1 "git://github.com/phalcon/cphalcon.git"
cd cphalcon/build
sudo ./install
# 添加扩展
echo "extension = phalcon.so" > /etc/php.d/
# 最后,重启web服务器
systemctl restart nginx
systemctl restart php-fpm
注意
You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
#查看yum是否有re2c
yum search re2c
# yum安装re2c
yum install re2c