Categories

Featured templates

如何在本地服务器上安装WordPress引擎和主题(基于WAMP)

Rating: 4.3/5. From 3 votes.
Please wait...

如果你想过创建一个 website这在一开始可能看起来很棘手. 但是网上有很多指导, 而且安装过程看起来也没那么难, 所以你最终决定试一试——这很好! 让我们一起学习如何安装WordPress,搭建一个美丽的 website -此时,在本地服务器上.

一开始,你可能只是想摆弄一下设置,也许 avoid extra expenses if possible. 幸运的是,没有严格的需要支付 hosting 帐户,如您可以使用本地 hosting software for free. Some of the localhost examples are WAMP, XAMPP, MAMP, etc. 使用起来也很方便, 因为你可以在你的电脑上运行WordPress安装, 不需要网络访问. We will be glad to show you 如何安装WordPress到 WAMP localhost in a few simple steps. 简而言之,您需要下载 WAMP,下载WordPress,然后一个接一个地安装它们. 让我们检查一下整个过程.

Step 1. Download WAMP

Visit the http://www.wampserver.com/ ( WAMP official website) and click the ‘Start using WampServer’ button. 然后,选择符合你电脑特点的版本,例如, WAMP server for Windows 10: ‘WampServer 64 bits (x64) 3.0.6’ 并使用优选的下载方式. 我们将使用“直接下载”选项.

Step 2. Install WAMP

  1. 在计算机上找到新下载的EXE文件并双击它以开始安装.

  2. 您需要检查许可协议,接受其条款,然后单击 Next button to proceed.

  3. Then, choose the destination folder to install the WAMP server there. 你可以选择你的桌面,例如,最主要的是要有方便访问.

  4. 当所有准备工作完成后,单击 Next 然后让系统进行安装. 向导将在任务完成时通知您.

Step 3. Run your WAMP

现在,让我们来确定是否一切都做对了. Find the WAMP shortcut 在桌面上并双击它以运行计算机上的本地服务器环境. WAMP 图标将始终在托盘中可用. 如果需要,它将允许您更改服务器参数, 和管理服务器本身一样, reach the database,选择PHP版本,定义内存限制等.

Step 4. Create a Database

已成功下载并安装 WAMP software,那么现在你差不多已经准备好实现大目标了——在本地服务器上安装WordPress. 但是你仍然需要做一些准备工作,比如下载WordPress和 create a database for it. In order to create a database at WAMP,请执行以下步骤:

  1. Click on the WAMP icon in the tray and choose phpMyAdmin, it will open http://localhost/phpmyadmin page in the browser.

  2. Log into your phpMyAdmin using ‘root’ as a username. There is no password by default, so just press the GO button to login.

  3. Go to the ‘Databases’ tab 在顶部输入你的新名字 database under the ‘Create database title.

  4. Finally, click on the Create 按钮-您刚刚创建了一个 database for your website, my congratulations!

Step 5. WordPress Download

It’s a hight time to download WordPress now, so please, open the new tab in the browser. Visit the http://wordpress.org/download 页面下载最新版本的WordPress. Unzip it, you will find the ‘wordpress’ folder inside. Copy this folder to your WAMP root directory (it is a \wamp\www\ folder).

Step 6. Install WordPress

在这一步中,您已经为安装WordPress做好了充分的准备,所以让我们开始吧. Open your site in a browser by typing the localhost/wordpress’ in the browser address bar. 接下来,执行以下步骤来完成WordPress安装:

  1. Select a language for your website and click Continue.

  2. Press the ‘Let’s go’ 按钮,在本地安装WordPress.

  3. Enter your WordPress database details to the input fields. Tip: the database title 您之前创建的用户名是 root,密码字段应为空,主机名为 localhost and prefix should remain as wp_.

  4. 如果所有的细节都是正确的(它们肯定是正确的),你将得到“All right’ message. Click on the ‘Run The Install’ button then.

  5. 根据你的喜好填写下一页上的字段. 您将被要求指定所需的 site title, username and password 用于WordPress管理,以及您的 email address.

  6. 享受成功的消息,并随时登录到您的新安装 website. WordPress setup is finished, 因此,您可以通过安装主题开始自定义它, plugins, add your content, and so on.

祝你网站顺利!

我们希望这一步一步的指导对你有用. Feel free to check our blog 来学习如何管理你的WordPress website as a guru of the web design!

我们也建议您去看看最新的 WordPress themes to build your very own website.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket