直接下载
wget https://downloadsapachefriends.global.ssl.fastly.net/5.6.38/xampp-linux-x64-5.6.38-0-installer.run
放到usr/local目录下,进入到这个目录
如果没有权限则添加权限
chmod -R 777 xampp-linux-x64-5.6.38-0-installer.run
如果出现 chmod: missing operand after ‘777。。。则是复制的内容空格有问题
直接运行
./xampp-linux-x64-5.6.38-0-installer.run
运行过程中会弹窗提示你下载文件,点否
然后命令行中提示输入都输入Y
安装完毕,已经启动
Apache操作
Apache操作命令
/opt/lampp/lampp stopapache
/opt/lampp/lampp startapache
配置文件位置
/opt/lampp/etc/httpd.conf