Magento2安装配置指南

1)购买一台云服务器
2)配置FileZilla/Putty连接云服务器
3)安装Apace
sudo apt-get update
sudo apt-get install apache2

4)安装MySQL
sudo apt-get -y install mysql-server-5.7 mysql-client-5.7
mysql_secure_installation

5)创建Magento2数据库
mysql -u root –p
create database magento;
GRANT ALL ON magento.* TO magento_usr@localhost IDENTIFIED BY '123456';

6)安装php
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
sudo apt-get update
sudo apt-get install php7.0-mysql php7.0-cli php7.0-gd php7.0-json
php –v
sudo apt-get install php7.0-mysql php7.0-cli php7.0-gd php7.0-json php7.0-curl php7.0-dom php7.0-mcrypt php7.0-simplexml php7.0-xsl php7.0-intl php7.0-mbstring php7.0-zip php7.0-xmlwriter
sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart

7)安装composer
sudo apt-get update
sudo apt-get install curl php5-cli git
sudo apt-get install curl php7.0-cli git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

8)通过composer安装magento2

Beginner’s Guide to Installing Magento 2 using Composer


http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install_ce.html
git clone https://github.com/magento/magento2.git
sudo apt-get install php7.0-soap
9)权限设置
10)运行installer

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected with IP Blacklist CloudIP Blacklist Cloud