Home  >  Article  >  Backend Development  >  阿里云ecs安装php 7 执行php-v 报错

阿里云ecs安装php 7 执行php-v 报错

WBOY
WBOYOriginal
2016-06-06 20:16:541278browse

<code>┌─  [root@iZ2×××××tZ] [~] []
└─  php -v                                                                                                                             [2016-02-27 17:41:44] 
[1]    2303 illegal hardware instruction  php -v</code>

中文的意思应该是非法的硬件指令
请各位大神给个意见

cpu1核 内存2g 硬盘40g 别的好像没了

回复内容:

<code>┌─  [root@iZ2×××××tZ] [~] []
└─  php -v                                                                                                                             [2016-02-27 17:41:44] 
[1]    2303 illegal hardware instruction  php -v</code>

中文的意思应该是非法的硬件指令
请各位大神给个意见

cpu1核 内存2g 硬盘40g 别的好像没了

首先确认下你已经正确安装了php,如果已经安装,确认下安装位置,是否已经加入环境变量,可以通过whereis php 看一下!

我自己编译打包了适用于64位Linux的PHP7包,提供有二进制包和编译打包方法,你参考下:
http://my.oschina.net/eechen/blog/411534

发现自己办了糊涂事情
配置1核2g内存选系统竟然选了64位操作系统 这里出错了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn