有些vps默认会安装套件,但这对喜欢Diy的人来说反而麻烦,如果想恢复干净的vps系统,在ssh下运行:
rpm -qa|grep httpd
rpm -e httpd
rpm -qa|grep mysql
rpm -e mysql
rpm -qa|grep php
rpm -e php
yum -y remove httpd
yum -y remove php
yum -y remove mysql-server mysql
yum -y remove php-mysql
yum -y install yum-fastestmirror
yum -y remove httpd
yum -y update