Heim  >  Artikel  >  Backend-Entwicklung  >  阿里云ecs安装php 7 执行php-v 报错

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

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

<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位操作系统 这里出错了

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:有没有统计url访问量的系统Nächster Artikel:php 数组转化