<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                首先到[https://marketplace.magento.com/](https://marketplace.magento.com)獲取username和passowd。 ![](https://img.kancloud.cn/2d/74/2d741a658ebbca84b0f322ed033284d6_554x189.png) ![](https://img.kancloud.cn/fa/f5/faf504946674b066af243ad0ef76a8e6_554x197.png) Public key即username,Private key即password。 ***** **安裝composer** ``` curl \-sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer composer -v ``` **使用composer獲取代碼** ``` cd /var/www/html mkdir magento chown -R www.www magento cd magento su www composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . # 如需指定版本 # composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.0 . # composer show magento/product-community-edition 2.4.\* --all | grep -m 1 versions # 如果中途中斷了,不要再用上面的命令,改用下面的命令繼續獲取代碼 composer update ``` ![](https://img.kancloud.cn/4b/2a/4b2a2355d58f3f177191ada43befbf98_906x144.png) 這里說明已經在開始下載代碼了,需要花點時間,可以先做點其他事情。建議加上-vvv參數,可以看到當前下載的包,不至于一直停留在一個界面,以為卡住了。 下載完成: ![](https://img.kancloud.cn/1a/8f/1a8ff0d1b038b8873b7af7e3f187645e_1399x75.png) **安裝Magento** Magento2.4開始只能通過命令行安裝了。參考以下命令: ``` php -dmemory_limit=4G bin/magento setup:install \ --base-url=http://test.magento.com \ --db-host=localhost \ --db-name=magento \ --db-user=magento \ --db-password=magento \ --admin-firstname=admin \ --admin-lastname=admin \ --admin-email=admin@admin.com \ --admin-user=admin \ --admin-password=admin123 \ --language=en_US \ --currency=USD \ --timezone=America/Chicago \ --use-rewrites=1 ``` 根據自己的情況,修改參數的值。 ![](https://img.kancloud.cn/4f/da/4fdaa325cb54277959e51968e8efdc1b_458x235.png) 安裝完畢后,會出現以下內容: ``` [SUCCESS]: Magento installation complete. [SUCCESS]: Magento Admin URI: /admin_vvxyuo Nothing to import. ``` 從中獲取后臺入口,我這里的入口是admin_vvxyuo。 **nginx配置** ``` su root cd /etc/nginx/conf.d vim test.magento.com.conf ``` ``` upstream fastcgi_backend { server 127.0.0.1:9000; } server { listen 80; server_name test.magento.com; access_log /var/log/nginx/magento.access.log main; error_log /var/log/nginx/magento.error.log error; set $MAGE_ROOT /var/www/html/magento; include /var/www/html/magento/nginx.conf; } ``` ``` cp /var/www/html/magento/nginx.conf.sample /var/www/html/magento/nginx.conf nginx -t # 重啟nginx nginx -s reload # 啟動php-fpm /usr/sbin/php-fpm ``` 訪問[http://test.magento.com/](http://test.magento.com/) ![](https://img.kancloud.cn/5b/29/5b29adf030c2c90aa95e35488ebdfdd3_1434x372.png) 訪問[http://test.magento.com/admin\_vvxyuo](http://test.magento.com/admin_vvxyuo) ![](https://img.kancloud.cn/bb/5b/bb5b6c957773f5d8acfbb92101069d5f_1472x862.png) M2.4后臺增加了二次驗證功能,登錄后,要出現以下提示: ![](https://img.kancloud.cn/a9/25/a925006a127416f2b065b1f8e7c6b6bf_623x536.png) 如果不需要這個功能,可以禁用Magento_TwoFactorAuth模塊。 ``` cd /var/www/html/magento/ bin/magento module:disable Magento_TwoFactorAuth ``` 再次嘗試登錄,成功。 ![](https://img.kancloud.cn/de/41/de41880ab95a5128c5ee3630d9747e8b_1196x301.png) *** PS:如果多次嘗試,還是無法成功,也可以付費找人安裝。本人微信:xie64264。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看