微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CentOS6.4下安装xampp

一、xampp下载地址:

http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/

二、我下载的是xampp-linux-x64-1.8.3-1-installer.run

wgethttp://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-1-installer.run/download

三、下载完以后,给该文件添加执行权限:

chmod a+x xampp-linux-x64-1.8.3-a-installer.run

四、安装xampp过程如下:

[root@Nginxone src]# sh xampp-linux-x64-1.8.3-1-installer.run

xampp-linux-x64-1.8.3-1-installer.run: xampp-linux-x64-1.8.3-1-installer.run: cannot execute binary file

[root@Nginxone src]# ./xampp-linux-x64-1.8.3-1-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.

Launch XAMPP [Y/n]: y

五、安装后的文件在 /opt/lamp

六、启动xampp:

[root@Nginxone lampp]# /opt/lampp/xampp start

Starting XAMPP for Linux 1.8.3-1...

XAMPP: Starting Apache...fail.

XAMPP: Another web server is already running.

XAMPP: Starting MysqL...ok.

XAMPP: Starting ProFTPD...fail.

XAMPP: Another FTP daemon is already running.

七、停止xampp:

[root@Nginxone lampp]# /opt/lampp/xampp stop

Stopping XAMPP for Linux 1.8.3-1...

XAMPP: Stopping Apache...not running.

XAMPP: Stopping MysqL...ok.

XAMPP: Stopping ProFTPD...not running.

八、添加开机启动:

温习一下ln命令,使用方式:

#ln [option] source dist

#ln �Cs /opt/lampp/xampp /etc/rc.d/init.d/xampp

九、如果执行完上面这条还不能开机自动启动,再执行下面3条语句。

#chkconfig �Cadd xampp

#chkconfig �Clist | grep xampp

#chkconfig �Clevel 3 xampp on

xampp的界面:

(教程)CentOS6.4下安装xampp - CentOS - Linux合Oracle学习之路


十、卸载xampp

#/opt/lampp/xampp stop

#rm -rf /opt/lampp

原文地址:https://www.jb51.cc/centos/377947.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。