|
Post by account_disabled on Dec 10, 2023 8:27:55 GMT
您可以单击Apache和MySQL旁边的“开始”按钮: XAMPP 控制面板 XAMPP 控制面板 运行它们后,状态应更改为绿色。现在是时候测试您的服务器了。您可以通过在网络浏览器中输入“http://localhost/”来完成此操作。如果有效,则您已成功将 XAMPP 添加到您的计算机。 第 4 步:下载 WordPress 并创建数据库 下一步是在您的计算机上安装 WordPress。您可以通过访问WordPress.org并单击获取 WordPress来完成此操作。 包下载完成后,解压文件,然后复制文件夹。接下来,导航到计算机上的 XAMPP 文件夹,找到并打开htdocs文件夹。 接下来,在htdocs文件夹中创建一个新文件夹。 您可以为其命名,例如“我的测试站点”。在该文件 加拿大数据库 夹中粘贴 WordPress 文件。 现在是时候创建数据库了。 返回 XAMPP 控制面板并选择MySQL旁边的Admin。这将启动 phpMyAdmin。 单击“数据库”,然后为您的数据库命名并选择“创建”(如果需要更多指导,可以参考前面的部分)。 您可以随意命名数据库。但是,我们建议保持简单易记,例如“test_db”。 第 5 步:通过在浏览器中访问您的网站来本地安装 WordPress 要完成该过程,您可以在浏览器中访问“http://localhost/mytestsite”。请记住将“我的测试站点”替换为您的 WordPress 文件夹的名称。 系统将要求您选择一种语言、为您的网站命名并填写您的数据库详细信息。 然后,您可以登录 WordPress 站点并开始使用本地环境。 概括 通过设置本地 WordPress 环境,您可以在启动 WordPress 网站之前测试新功能并全面开发它们。事实上,您可以使用多种方法在计算机上本地安装 WordPress。 在本文中,我们将解释如何通过本地服务器环境软件(DevKinsta、DesktopServer、WAMP、MAMP 或 XAMPP)在 Mac 和 Windows 上完成此操作。尽管具体说明因您使用的工具而异,但该过程可概括为五个主要步骤: 在计算机上下载并安装本地环境软件。 打开文件。EXE文件/。dmg并运行安装程序。 创建一个空白的MySQL 数据库。
|
|