linux下安装XAMPP

来源:互联网 发布:java开发者 编辑:程序博客网 时间:2024/05/19 22:55

一、xampp下载地址:

注意是32位还是64位

在字符界面输入前还是在浏览器里面输一下网址,防止敲了半天不能下载!因为目前很多网上的文件安装源都不存在了

http://www.apachefriends.org/zh_cn/index.html

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

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

二、我下载的是xampp-linux-x64-1.8.3-1-installer.run
通过wget指令下载源代码安装包 
三、下载完以后,给该文件添加执行权限:
chmod a+x xampp-linux-x64-1.8.3-a-installer.run
四、安装xampp过程如下:
# ./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:

# /opt/lampp/xampp stop


因为安装默认在/opt/lampp/下,所以卸载只需要把整个文件夹删除即可

八、卸载xampp
#/opt/lampp/xampp stop
#rm -rf /opt/lampp

0 0
原创粉丝点击