下载PDF文件下载PDF文件

本文教你如何在Linux电脑上安装并运行XAMPP。

部分 1
部分 1 的 2:

安装XAMPP

下载PDF文件
  1. How.com.vn 中文: Step 1 打开XAMPP下载页面。
    在电脑的网页浏览器中访问 https://www.apachefriends.org/index.html 。这是XAMPP的官方下载网站。
  2. How.com.vn 中文: Step 2 点击XAMPP(Linux版)。
    按钮在页面中间。点击后XAMPP 安装文件将开始下载到你的电脑上。
    • 下载之前,你可能需要点击保存文件,或者选择“下载”文件夹作为保存位置。
  3. How.com.vn 中文: Step 3 允许下载完成。
    XAMPP的安装文件下载到你的电脑上后,你就可以继续了。
  4. How.com.vn 中文: Step 4 打开“终端”。
    点击“终端”应用图标,图标类似一个黑盒子,里面有一个白色的“>_”符号。
    • 还可以直接按Alt+Ctrl+T来打开一个新的“终端”窗口。
  5. How.com.vn 中文: Step 5 切换到“下载”目录。
    输入cd Downloads,并按Enter
    • 确保“Downloads”大写。
    • 如果你的默认下载位置在另一个文件夹中,则必须将目录更改为这个文件夹。
  6. How.com.vn 中文: Step 6 使下载的文件可执行。
    输入chmod +x xampp-linux-x64-7.2.9-0-installer.run,并按Enter[1]
    • 如果你下载了不同版本的XAMPP(例如,版本5.9.3),需要用XAMPP版本号替换“7.2.9”。
  7. How.com.vn 中文: Step 7 输入安装命令。
    输入sudo ./xampp-linux-x64-7.2.9-0-installer.run,并按Enter
  8. How.com.vn 中文: Step 8 出现提示时,输入密码。
    输入用于登录电脑的密码,然后按Enter。将会弹出安装窗口。
    • 输入时密码时,“终端”上是看不到字符的。
  9. How.com.vn 中文: Step 9 按照安装提示操作。
    出现安装窗口时,按下列步骤操作:
    • 三次点击下一步
    • 取消选中“了解更多关于Bitnami for XAMPP的信息”勾选框。
    • 点击下一步,然后再点一次下一步,开始下载XAMPP。
  10. How.com.vn 中文: Step 10 取消选中“运行XAMPP”框。
    勾选框位于最终安装窗口的中间。
    • 由于还要经过一些步骤才能让XAMPP在Linux上真正运行起来,所以要在取消自动运行XAMPP的情况下完成安装。
  11. How.com.vn 中文: Step 11 点击完成。
    这个选项在窗口底部。点击后将关闭安装窗口。这时候,你可以运行XAMPP了。
    广告
部分 2
部分 2 的 2:

运行XAMPP

下载PDF文件
  1. How.com.vn 中文: Step 1 如有必要,重新打开“终端”。
    如果关闭了用于安装XAMPP的“终端”窗口,则重新打开“终端”。
    • XAMPP没有任何桌面文件,所以每次想要运行它时,都需要从它的安装目录中通过“终端”启动它。
  2. How.com.vn 中文: Step 2 切换到XAMPP安装目录。
    输入cd /opt/lampp,并按Enter[2]
  3. How.com.vn 中文: Step 3 输入“Open”命令。
    输入sudo ./manager-linux-x64.run,并按Enter
  4. How.com.vn 中文: Step 4 出现提示时,输入密码。
    输入用于登录电脑的密码,然后按Enter
  5. How.com.vn 中文: Step 5 点击管理服务器选项卡。
    这个选项在窗口顶部。
  6. How.com.vn 中文: Step 6 点击全部启动。
    这个选项在窗口底部。这样就可以使XAMPP的所有有效组件开始运行。
  7. How.com.vn 中文: Step 7 打开电脑的localhost页面。
    在电脑的网页浏览器中前往127.0.0.1。你应该可以在这里看到XAMPP的控制面板;现在,你可以随意使用XAMPP了。
    广告

小提示

  • XAMPP通常用于模拟实时web服务器,用于测试应用程序、网站内容等等。
广告

警告

  • 将XAMPP安装文件输入“终端”之前,确保检查XAMPP的版本号。输入错误的版本号会导致错误。
广告

关于本How.com.vn

How.com.vn 中文: How.com.vn员工
共同创作者是 :
How.com.vn专职作家
这篇文章由我们训练有素的编辑和研究团队共同创作,他们对文章的准确性和全面性进行了验证。

How.com.vn的内容管理团队会严密监督编辑人员的工作,确保每篇文章都符合我们的高质量标准要求。 这篇文章已经被读过4,167次。
本页面已经被访问过4,167次。

这篇文章对你有帮助吗?

⚠️ Disclaimer:

Content from Wiki How 中文 language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

Notices:
  • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
  • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
  • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
  • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

广告