想把PHP卸载清洁,直接用yum remove php卸载不清洁,能够起首检察装置的rpm包目次,然后根据递次一个个卸载。
相干引荐:《PHP教程》
1、起首检察机械上装置的一切php相干的rpm包。
[root@localhost nginx]# rpm -qa | grep php php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64 php55-php-gd-5.5.38-7.el7.remi.x86_64 php55-runtime-2.1-5.el7.remi.x86_64 php55-2.1-5.el7.remi.x86_64 php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64 php55-php-xml-5.5.38-7.el7.remi.x86_64 php55-php-5.5.38-7.el7.remi.x86_64 php55-php-common-5.5.38-7.el7.remi.x86_64 php55-php-process-5.5.38-7.el7.remi.x86_64 php55-php-mbstring-5.5.38-7.el7.remi.x86_64 php55-php-pear-1.10.5-2.el7.remi.noarch php55-php-cli-5.5.38-7.el7.remi.x86_64
2、按依靠递次举行删除。
rpm -e php55-php-pecl-zip-1.15.1-1.el7.remi.x86_64 rpm -e php55-php-gd-5.5.38-7.el7.remi.x86_64 rpm -e php55-runtime-2.1-5.el7.remi.x86_64 rpm -e php55-2.1-5.el7.remi.x86_64 rpm -e php55-php-pecl-jsonc-1.3.10-1.el7.remi.x86_64 rpm -e php55-php-xml-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-common-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-process-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-mbstring-5.5.38-7.el7.remi.x86_64 rpm -e php55-php-pear-1.10.5-2.el7.remi.noarch rpm -e php55-php-cli-5.5.38-7.el7.remi.x86_64
以上就是php怎样卸载的细致内容,更多请关注ki4网别的相干文章!