红帽子(redhat)5.4删除XAMPP后重新安装XAMPP

导语:在红帽子(redhat)5.4安装xampp后,启动mysql失败,查看日志发现是mysql用户不存在,解决后,又提示数据表有问题,猜测是安装的时候出了问题,于是,干脆删除了重新XAMPP重新安装。

停止XAMPP

停止 XAMPP,只需输入如下命令:

/opt/lampp/lampp stop

您现在应该能看到:

Stopping XAMPP for Linux 7.0.8-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...not running.
XAMPP: Stopping ProFTPD...ok.

然后 XAMPP 的 Linux 版就停止运行了。

删除XAMPP

想卸载 XAMPP,只需输入如下命令:

rm -rf /opt/lampp

卸载完成。

XAMPP安装时算是自解压压缩包,所有的文件都是解压到/opt/lampp目录下的。

安装XAMPP

切换到安装包的目录,执行以下命令:

sudo ./xampp-linux-7.0.8-0-installer.run

----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

----------------------------------------------------------------------------
Installation Directory

XAMPP will be installed to /opt/lampp
Press [Enter] to continue:

----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

启动XAMPP

/opt/lampp/lampp start

Starting XAMPP for Linux 7.0.8-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

查看XAMPP状态

/opt/lampp/lampp status

Version: XAMPP for Linux 7.0.8-0
Apache is running.
MySQL is running.
ProFTPD is running.

结束

你学会了吗?

发表评论

邮箱地址不会被公开。 必填项已用*标注