Magento 2安装Windows管理员断开的链接 [英] Magento 2 Install Windows Admin Broken Links

查看:110
本文介绍了Magento 2安装Windows管理员断开的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10上使用XAMPP.我安装了Magento 2.20社区.我的管理员网址已损坏:

I use XAMPP on Windows 10. I installed Magento 2.20 community. My admin URLs are all broken:

我应该使用另一个版本吗?我试图从这篇文章中运行命令:

Is there another version I should use? I tried to run the commands from this post:

Magento 2-Admin中的链接不起作用

在控制台中,我看到以下错误:

In my console, I see these errors:

/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:71 Uncaught TypeError: require is not a function
    at requirejs-config.js:71
    at requirejs-config.js:78
    at requirejs-config.js:416
magento-icon.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):38 Uncaught TypeError: require.config is not a function
    at (index):38
(index):87 Uncaught TypeError: require is not a function
    at (index):87
(index):295 Uncaught TypeError: require is not a function
    at (index):295
(index):428 Uncaught TypeError: require is not a function
    at (index):428
(index):473 Uncaught TypeError: require is not a function
    at (index):473
(index):514 Uncaught TypeError: require is not a function
    at (index):514
(index):537 Uncaught TypeError: require is not a function
    at (index):537
(index):560 Uncaught TypeError: require is not a function
    at (index):560
admin-icons.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)

推荐答案

不知道以下内容是否对您有帮助,请检查.

Doesn't know whether the following will help you out, Please check.

在您的屏幕截图中,我可以看到您已经在magento/bin路径中,因此在这里您必须在命令下运行

In your screen shot i can see that you are already in magento/bin path, so here you have to run below command

sudo magento setup:upgrade

对于第二个命令,您正在命令中使用两个php.

And for second command yo are using two php in command.

  • 首先注意:Windows版本不支持Magento2.但是,可以运行.
  • 如果要安装magento2.2,请确保您使用的是php7或7x,magento2.2将不支持较早的版本.
  • 检查您的apache2 a2enmode是否已启用,因为它将在重定向时出现问题.
  • 检查您的所有文件是否具有足够的加载权限,对于本地文件,您可以检查是否具有app/etc,var/,pub/static/,generate/*的完全权限.
  • 设置完所有内容后,尝试使用php运行部署命令.
  • First Note : Magento2 doesn't support in windows version. But, can run.
  • If you are installing magento2.2 please make sure you are using php7 or 7x, magento2.2 will not support older versions.
  • Check your apache2 a2enmode is enabled or not, because it will make issues on redirection.
  • Check your all files have enough permission to load, for your local you can check with giving full permission for app/etc,var/,pub/static/,generate/*.
  • Once everything is set try to run the deployment commands with php.

如果不需要,可以避免使用sudo.否则,请转到magento root并运行您已经尝试实现的较早的命令.

You can avoid sudo if not needed. Or else go to magento root and run the earlier command which you already tried to implement.

希望这可以帮助您进行梳理.

Hope this will help you to sort out.

这篇关于Magento 2安装Windows管理员断开的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆