提示:PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /
使用了当前php版本不支持的命令 解决方案是替换版本
centOS 7下,安装了php 7.1,使用php -v,显示php版本为5.4
使用以下命令就能将系统默认的5.4切换成安装的7.1版本
命令:
ln-sf/www/server/php/71/bin/php/usr/bin/php
https://cloud.tencent.com/developer/article/1464303
laravel redis 安装:https://learnku.com/docs/laravel/5.8/redis/3930
~~~~~~~~~~~~~~~~~~~~~~~
可能设置时出现 putenv pcntl_signal proc_open禁用,可以在宝塔内删除此禁用
~~~~~~~~~~~~~~~~~~~~~~~
composer 报 Failed to decode response: zlib_decode(): data error
版本太老 ,需要升级 执行 composer self-update 即可
~~~~~~~~~~~~~~~~~~~~~
fileinfo 在宝塔php内打开扩展 fileinfo
~~~~~~~~~~
killed 内存不足
~~~~~~~·~~~~

网友评论