求助:安装在Mac上的xampp无法通过localhost访问,只能通过本地ip访问

在Mac上安装了xampp之后,如何使其通过本地主机或127.0.0.1访问http://192.168.64.2/dashboard

You most likely installed the application that sets up a virtual machine. Revisit the download page and select the application without 'vm' at the end

here: https://www.apachefriends.org/download.html

Like Ab Ned said, you've probably installed the VM version. I guess that's a good thing because it might save your from unwanted side-effects. So, if you want to stick with it, just activate the port forwarding:

enter image description here

There's also a little walkthrough at https://www.apachefriends.org/faq_stackman.html.