如何通过 Mac 上的终端访问 XAMPP/Lampp 文件夹 [英] How can I access XAMPP/Lampp folder via Terminal on Mac
问题描述
我最近开始在 Mac 上使用 XAMPP,它在共享"下安装了lampp"文件夹,并在 Finder 中显示为 IP 地址.所以我可以通过 Finder 访问文件,但我无法通过终端 cd 进入文件夹.
I recently started using XAMPP on Mac and it installed the "lampp" folder under "Shared" and showing as an IP address in Finder. So I can access the files via Finder but I'm unable to cd into the folder via Terminal.
共享文件夹根本不可见.我尝试/Volumes 查看所有卷,但未列出lampp",并且以某种方式安装它,但这也不起作用.有任何想法吗?奇怪的是我在 Finder 中看到了文件夹,但在终端中没有看到!
The Shared folder is simply not visible. I tried /Volumes to see all volumes, but "lampp" wasn't listed, as well mounting it somehow but that also didn't work. Any ideas? It's so odd that I see the folder in Finder but not in Terminal!
推荐答案
我遇到了同样的问题 htdocs 的路径如下:
I had the same problem the route for htdocs is the following:
cd /Users/***your_user_name***/.bitnami/stackman/machines/xampp/volumes/root/htdocs
"username" 仅用您的用户名替换该行
"username" only replaces that line by the name of your user
例如,对我来说是:
cd /Users/adanuri/.bitnami/stackman/machines/xampp/volumes/root/htdocs
这篇关于如何通过 Mac 上的终端访问 XAMPP/Lampp 文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!