vim /opt/lampp/etc/extra/httpd-xampp.conf 文件末尾 #Require local将这个注释掉,取消只允许本地访问 重启xammp服务 /opt/lampp/lampp restart 可以实现外网访问