magento2.x系统加速

admin6年前IT技术1413

1:在根目录运行以下命令,全站生成静态
bin/magento setup:static-content:deploy
2:编译整个网站,让网站加速50%  注意事项:要把PHP脚本内存限制设置到1000MB以上,否则会导致编译失败;
bin/magento setup:di:compile
3.让整个网站composer重新指向,让网站加速加速10%
composer dump-autoload -o --apcu
4:设置网站为生产模式,让网站加速30%
This can be done in your .htaccess or nginx.conf file:SetEnv MAGE_MODE production
或者bin/magento deploy:mode:set production

5:合并js
Stores > Configuration > Advanced > Developer > JavaScript Settings
设置 Merge JavaScript Files 为Yes
设置 Enable JavaScript Bundling 为Yes





 

 

 

相关文章

关于jquery升级至1.8版本之后的兼容问题Uncaught TypeError: $(...).size is not a function

关于jquery升级至1.8版本之后的兼容问题Uncaught TypeError: $(...).size is not a function

之前也遇到过这种问题Uncaught TypeError: $(...).size is not a function  控制台报错如上图,打开Frame.js可以看到里面定义大小...

过滤emoji表情的正则表达式

\p{Cs}?imageView2/2/w/300/interlace/1/q/90^[\u4e00-\u9fa5]+$...

Android Studio4.1.3设置app全屏

 Android Studio4.1.3设置app全屏<style name="AppTheme.FullScreen">   ...

adobe验证屏蔽

127.0.0.1 lmlicenses.wip4.adobe.com  127.0.0.1 lm.licenses.adobe.com  127.0.0.1...

汇成政府建站CMS系统V1.5

汇成政府建站CMS系统V1.5官方下载地址:˂a target="_blank" href="download/zfhuichengv15.rar"˃点击下载演示地址:ceshi/zhengfucms...

WINDOWS 10 PPTP服务器的搭建流程

WINDOWS 10 PPTP服务器的搭建流程

Windows Server 2003/2008/2008 R2的方法是完全一样的,没有任何区别。不过2008 R2系统要先打开服务管理,添加角色,安装“网络策略和访问服务”,...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。