XAMPP官方下载地址 https://www.apachefriends.org/download.html

根据需要选择相应的安装文件,这里我选择了对应的64位xampp-linux-x64-5.6.35-0-installer.run

用sudo  rz上传xampp发现有问题是因为新安装的centos还没有安装软件包

centos安装xampp过程

$ yum -y install lrzsz

centos安装xampp过程

安装成功然后再上传

centos安装xampp过程

然后给安装文件加上可执行的属性:

$ sudo chmod 777 xampp-linux-x64-5.6.35-0-installer.run

centos安装xampp过程

运行安装文件:

$ sudo ./xampp-linux-x64-5.6.35-0-installer.run

centos安装xampp过程

安装完成后,XAMPP默认会安装在/opt/lampp下:

服务器开启 $ sudo /opt/lampp/xampp start

centos安装xampp过程

我上图显示是成功的,如果Apache显示fail,可能就是80端口了

可以执行命令 $ sudo netstat -anp | grep 80 | grep LISTEN  查看一下80的pid号

centos安装xampp过程

如果被占用,用命令kill+pid号关了这个进程

然后再重新执行一遍 $ sudo /opt/lampp/xampp start应该就可以了

最后去虚拟机浏览器看一下能不能进入xampp的界面

centos安装xampp过程

关闭服务器的:

$ sudo /opt/lampp/xampp stop

重启服务器的:

$ sudo /opt/lampp/xampp restart



相关文章:

  • 2021-04-19
  • 2021-12-11
  • 2021-07-08
  • 2021-12-26
  • 2021-09-05
  • 2021-06-06
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-10-06
  • 2022-02-01
  • 2021-07-21
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案