centos7反复安装php结果最后无法卸载干净
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了centos7反复安装php结果最后无法卸载干净,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2751字,纯文字阅读大概需要4分钟。
内容图文
![centos7反复安装php结果最后无法卸载干净](/upload/InfoBanner/zyjiaocheng/201/680eb9850e7b44bbb7b1bd63cb23dc14.jpg)
使用yum install php提示已经安装了。但是 php -v 却提示不存在。
整个过程:
[root@localhost conf.d]# whereis phpphp:[root@localhost conf.d]# yum remove phpLoaded plugins: fastestmirrorNo Match for argument: phpNo Packages marked for removal[root@localhost conf.d]# clear[root@localhost conf.d]# whereis phpphp:[root@localhost conf.d]# yum remove phpLoaded plugins: fastestmirrorNo Match for argument: phpNo Packages marked for removal[root@localhost conf.d]# rpm -qa | grep phpphp-cli-5.4.16-23.el7_0.x86_64php-pdo-5.4.16-23.el7_0.x86_64php-odbc-5.4.16-23.el7_0.x86_64php-snmp-5.4.16-23.el7_0.x86_64php-mbstring-5.4.16-23.el7_0.x86_64php-common-5.4.16-23.el7_0.x86_64php-process-5.4.16-23.el7_0.x86_64php-xml-5.4.16-23.el7_0.x86_64php-gd-5.4.16-23.el7_0.x86_64php-ldap-5.4.16-23.el7_0.x86_64php-soap-5.4.16-23.el7_0.x86_64php-xmlrpc-5.4.16-23.el7_0.x86_64[root@localhost conf.d]# yum install phpLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.linode.com * extras: mirrors.linode.com * updates: mirrors.linode.comResolving Dependencies--> Running transaction check---> Package php.x86_64 0:5.4.16-23.el7_0 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: php x86_64 5.4.16-23.el7_0 updates 1.3 MTransaction Summary================================================================================Install 1 PackageTotal download size: 1.3 MInstalled size: 4.4 MIs this ok [y/d/N]: yDownloading packages:php-5.4.16-23.el7_0.x86_64.rpm | 1.3 MB 00:00Running transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum. Installing : php-5.4.16-23.el7_0.x86_64 1/1 Verifying : php-5.4.16-23.el7_0.x86_64 1/1Installed: php.x86_64 0:5.4.16-23.el7_0Complete![root@localhost conf.d]# php -v-bash: php: command not found[root@localhost conf.d]# php -i-bash: php: command not found[root@localhost conf.d]#
回复讨论(解决方案)
把php安装目录下的bin指向 ln xx /usr/bin试试
可以试试这样卸载:
rpm -qa | grep phprpm -e [上面输出的包]
http://www.phpthinking.com/archives/207 格式化然后一步步来
http://www.phpthinking.com/archives/207
yum 安装的你就 yum 卸载 然后自己编译一个 最后 php 指令做个软连接过去
内容总结
以上是互联网集市为您收集整理的centos7反复安装php结果最后无法卸载干净全部内容,希望文章能够帮你解决centos7反复安装php结果最后无法卸载干净所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。