{"id":1645,"date":"2023-03-25T21:45:20","date_gmt":"2023-03-25T13:45:20","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1645"},"modified":"2023-04-23T21:57:54","modified_gmt":"2023-04-23T13:57:54","slug":"magento-2-4-installation-and-development-record","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/magento-2-4-installation-and-development-record\/","title":{"rendered":"Magento 2.4 \u5b89\u88c5\u53ca\u5f00\u53d1\u8bb0\u5f55"},"content":{"rendered":"<p>Github\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/magento\/magento2\">https:\/\/github.com\/magento\/magento2<\/a><br \/>\nDownload\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/magento.com\/tech-resources\/download\">https:\/\/magento.com\/tech-resources\/download<\/a><\/p>\n<blockquote>\n<p>Magento 2.4\u5f00\u59cb\u53ea\u80fd\u901a\u8fc7\u547d\u4ee4\u884c\u5b89\u88c5\u3002\u53c2\u8003\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/blockquote>\n<p><!-- more --><\/p>\n<pre><code class=\"language-bash\">bin\/magento setup:install \\\n--base-url=http:\/\/test.magento.com \\\n--db-host=localhost \\\n--db-name=magento \\\n--db-user=magento \\\n--db-password=magento \\\n--admin-firstname=admin \\\n--admin-lastname=admin \\\n--admin-email=admin@admin.com \\\n--admin-user=admin \\\n--admin-password=admin123 \\\n--language=en_US \\\n--currency=USD \\\n--timezone=America\/Chicago \\\n--use-rewrites=1<\/code><\/pre>\n<blockquote>\n<p>Magento 2.4\u5f00\u59cb\uff0c\u4ea7\u54c1\u7684\u641c\u7d22\u5f3a\u5236\u4f7f\u7528Elasticsearch\uff0c\u6240\u4ee5\u9700\u8981\u5148\u5b89\u88c5Elasticsearch 7.x<\/p>\n<\/blockquote>\n<ul>\n<li>\u5b89\u88c5\u6307\u5357\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/bk-install-guide.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/bk-install-guide.html<\/a><\/li>\n<li>Command-line installation\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/install\/cli\/install-cli-install.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/install\/cli\/install-cli-install.html<\/a><\/li>\n<li>Install Magento using Composer\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/composer.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/composer.html<\/a><\/li>\n<li>Install Magento using archive\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/prereq\/zip_install.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/prereq\/zip_install.html<\/a><\/li>\n<li>\u914d\u7f6e\u6307\u5357\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bk-config-guide.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bk-config-guide.html<\/a><\/li>\n<li>PHP\u5f00\u53d1\u4eba\u5458\u6307\u5357\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/extension-dev-guide\/bk-extension-dev-guide.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/extension-dev-guide\/bk-extension-dev-guide.html<\/a><\/li>\n<li>\u524d\u7aef\u5f00\u53d1\u4eba\u5458\u6307\u5357\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/frontend-dev-guide\/bk-frontend-dev-guide.html\">https:\/\/devdocs.magento.com\/guides\/v2.4\/frontend-dev-guide\/bk-frontend-dev-guide.html<\/a><\/li>\n<\/ul>\n<p>\u76ee\u5f55\u6743\u9650\u914d\u7f6e\uff1a<\/p>\n<pre><code class=\"language-bash\"># chown -R www.www \/data\/www\/magento2\n# chmod 777 -R vendor\n# chmod 777 -R var\n# chmod 777 -R generated\n# chmod 777 -R app\/etc\n# rm -rf var\/cache\/* var\/page_cache\/* var\/generation\/*<\/code><\/pre>\n<p>\u767b\u9646\u9047\u5230\u6536\u90ae\u4ef6\u95ee\u9898\uff1a<\/p>\n<p><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/magento.stackexchange.com\/questions\/318485\/you-need-to-configure-two-factor-authorization-in-order-to-proceed\">https:\/\/magento.stackexchange.com\/questions\/318485\/you-need-to-configure-two-factor-authorization-in-order-to-proceed<\/a><\/p>\n<p>\u7981\u7528\u9a8c\u8bc1\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-bash\">bin\/magento module:disable Magento_TwoFactorAuth<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Github\uff1ahttps:\/\/github.com\/magento\/magento2 Download\uff1ahtt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-1645","post","type-post","status-publish","format-standard","hentry","category-magento"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1645"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1645\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}