Heim  >  Artikel  >  Backend-Entwicklung  >  linux - rpm -qa php 为什么什么都没有?

linux - rpm -qa php 为什么什么都没有?

WBOY
WBOYOriginal
2016-07-06 13:51:391626Durchsuche

centos如何查看php是否安装?
我使用命令 rpm -qa | grep php 没有任何反应,直接跳入下一行
如图linux - rpm -qa php 为什么什么都没有?

这是为什么?
如何查看是否安装php?
谢谢

回复内容:

centos如何查看php是否安装?
我使用命令 rpm -qa | grep php 没有任何反应,直接跳入下一行
如图linux - rpm -qa php 为什么什么都没有?

这是为什么?
如何查看是否安装php?
谢谢

没有就说明php不是通过yum或者是rpm来安装的,而运行php指令没有找到则说明php不在系统默认的执行项目下,这时候php往往装在/usr/local/下,请检查这个目录。或者直接使用find查找php

rpm -qa | grep php
whereis php

rpm -qa|grep php 有可能名字是php-x64什么的,

先运行这条命令yum update

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