CentOS7中安装Xampp5.6.32

1. 切换到安装文件要放置的目录

cd /usr/local

2. 下载安装文件

wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.32/xampp-linux-x64-5.6.32-0-installer.run

    也可以到https://sourceforge.net/projects/xampp/files/XAMPP%20Linux中找到想要的版本,目前XAMPP版本都与所集成的PHP版本一致,下载后传入/usr/local中

3. 加上执行权限

chmod 755 xampp-linux-x64-5.6.32-0-installer.run

4. 执行安装

./xampp-linux-x64-5.6.32-0-installer.run

5.安装中选项

[root@localhost local]# ./xampp-linux-x64-5.6.32-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.


6. 关闭防火墙

#停止firewall

systemctl stop firewalld.service 

#禁止firewall开机启动
systemctl disable firewalld.service

7. 启动XAMPP

#开启

/opt/lampp/xampp start 

#关闭

/opt/lampp/xampp stop 

#重启

/opt/lampp/xampp restart 






猜你喜欢

转载自blog.csdn.net/mmhh3000/article/details/78673752
今日推荐