Magento笔记--安装篇

本文详细介绍了如何下载并安装Magento电商平台,包括官方下载地址、版本选择、数据库设置、安装步骤以及注意事项,旨在帮助开发者快速搭建本地测试环境。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近学习Magento,由于平时记不住东西所以把觉得有用的记下来留待以后查阅。

一、下载Magento

magento的官方下载地址:https://www.magentocommerce.com/products/downloads/magento/ 

写这篇博客的时候magento官方最新的版本是1.9.1.0。如果是在本地测试的话建议下载magento的官方演示数据Sample Data 我下载的是1.9.1.0版本的演示数据。

二、安装Magento

1、将magento安装包解压完成后上传到服务器相应目录中,例如magento。

2、建立一个存储magento数据的数据库,例如:magentoDB。导入演示数据安装包中的SQL文件,将演示数据包中的media和skin文件复制到magento所在目录下并替换原有文件夹(media和skin分别存放的是演示数据的图片、模板皮肤等资源)。

3、浏览器中打开xxx.com/magento(xxx是对应域名网址,本机就是localhost或者127.0.0.1)magento的安装。

4、安装过程不再赘述。需要注意的几点是:1.数据库表前缀选项,如果安装了测试数据则留空,如果应用到开发建议填写表前缀可以大大增强数据的安全性。2.后台访问目录尽量不要填写为admin。3.开启apache的rewrite模块,要不然会出现URL地址无法访问的情况。


Chapter 1, Installing Magento 2 on Apache and NGINX, is a totally different ballgame compared to Magento 1. Where Magento 1 could be installed through FTP or SSH, Magento 2 is installable only via the command-line interface for an experienced webmaster. Chapter 2, Magento 2 System Tools, explains how to install Magento 2 via the command shell. Magento released a new powerful tool to manage and install sample data, reindex your database, back up your site, or flush your caches, which are just a few of the options. Chapter 3, Enabling Performance in Magento 2, explains how to configure different types of caching options. In Magento 2, the Full Page Cache (FPC) can be handled by Varnish to give your store a performance boost. There are also external services that you can use as a cache. Chapter 4, Creating Catalogs and Categories, shows you one of the major elements of a Magento store before creating products. Creating the correct product type including attributes is an important step in setting up a Magento store. Chapter 5, Managing Your Store, covers setting up the correct tax rules, configuring an inventory, and creating customer groups. Chapter 6, Creating a Magento 2 Theme, discusses the Magento 2 blank theme and how to use the fallback to create seasonal variations. It also explains how the new theme is set up and where files are stored. Chapter 7, Creating Magento 2 Extensions – the Basics, contains the basic functions required to use extensions in a Magento 2 installation. It contains a brief introduction to new methods introduced in the Magento 2 framework and examples on how to create basic functions. Chapter 8, Creating Magento 2 Extensions – Ad
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值