您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
Magento2_命令操作模式
发布时间:2023-05-28 13:07:55编辑:雪饮阅读()
-
单词学习
symfony 软件名称
Catalog [图情][计]目录
Maintenance 维护,保养
Indexer 编索引的人;分度器
upgrade (使)(计算机、机器或软件)升级
flush 冲洗(抽水马桶),(抽水马桶)被冲洗
uninstall 卸载软件、解除安装
setup (软件或硬件的)安装
install 安装,设置
installation 安装,设置
sure 真的,肯定
install与installation的区别与联系?
"Install"是动词,表示安装或安置某物。而"installation"是名词,表示安装或安置的过程或结果。
因此,"installation"可以看作是"install"的名词形式。两者之间的联系是,"installation"描述的是"install"所完成的动作或过程的结果。
setup与install都是安装的意思,它们有什么区别和联系?
"Setup"和"install"都表示安装的意思,但它们在使用上有一些区别。"Install"通常用于描述安装软件或程序的过程,而"setup"则更广泛地用于描述安装、配置或准备系统、软件或设备的过程。此外,"setup"还可以用于描述安排或组织某事的过程。因此,可以说"install"是"setup"的一部分,"setup"包含了更广泛的含义和应用范围。
我的理解:
install 表示安装(软件)这个行为动作
installation描述 install(如果是手动时候的一些步骤以及最后安装结果情况(比如是否安装成功的判定条件等))
setup 不仅限于安装软件,而是范围更广的一些操作吧(除软件自身外,还有操作系统,甚至于设备等的操作配置吧)。
常用命令:
1、D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy 重新部署生成
这里有说后面还有一个-f选项,但是我这里测试没有-f参数,并且我查看帮助里面也确实是没有的
D:\phpstudy_pro\WWW\www.xymegento.com>D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy -h
Usage:
setup:static-content:deploy [-d|--dry-run] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [-t|--theme[="..."]] [--exclude-theme[="..."]] [-l|--language[="..."]] [--exclude-language[="..."]] [-a|--area[="..."]] [--exclude-area[="..."]] [-j|--jobs[="..."]] [--symlink-locale] [languages1] ... [languagesN]
Arguments:
languages Space-separated list of ISO-636 language codes for which to output static view files.
Options:
--dry-run (-d) If specified, then no files will be actually deployed.
--no-javascript Do not deploy JavaScript files
--no-css Do not deploy CSS files.
--no-less Do not deploy LESS files.
--no-images Do not deploy images.
--no-fonts Do not deploy font files.
--no-html Do not deploy HTML files.
--no-misc Do not deploy other types of files (.md, .jbf, .csv, etc...).
--no-html-minify Do not minify HTML files.
--theme (-t) Generate static view files for only the specified themes. (default: ["all"]) (multiple values allowed)
--exclude-theme Do not generate files for the specified themes. (default: ["none"]) (multiple values allowed)
--language (-l) Generate files only for the specified languages. (default: ["all"]) (multiple values allowed)
--exclude-language Do not generate files for the specified languages. (default: ["none"]) (multiple values allowed)
--area (-a) Generate files only for the specified areas. (default: ["all"]) (multiple values allowed)
--exclude-area Do not generate files for the specified areas. (default: ["none"]) (multiple values allowed)
--jobs (-j) Enable parallel processing using the specified number of jobs. (default: 4)
--symlink-locale Create symlinks for the files of those locales, which are passed for deployment, but have no customizations
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question
或许人家的是linux系统吧。magento版本上我确认过好像是一样的。
2、D:\phpstudy_pro\WWW\www.xymegento.com>D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:uninstall 重新安装
这里他说是重新安装,但是我觉得就字面意思应该是卸载吧。。。
咱们来问问chatgpt
"magento setup:uninstall"命令用于卸载Magento应用程序。它将删除Magento应用程序及其相关的数据库和文件。在执行此命令之前,请务必备份您的数据,以免数据丢失。
所以这个还是要慎重下的。
这里我虽然执行了,但是幸好有一个提示
Are you sure you want to uninstall Magento?[y/N]N
然后我这里输入N就取消了卸载
3、D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:upgrade 有新的扩展需要更新
我的理解是新增加一些东西,比如类似我们前面手动配置过的这些目录中:
D:\phpstudy_pro\WWW\www.xymegento.com\app\code
D:\phpstudy_pro\WWW\www.xymegento.com\app\design\frontend
D:\phpstudy_pro\WWW\www.xymegento.com\pub\media\wysiwyg
新增了文件后(一般手动新增了文件或目录)需要使用下该命令吧。
4、D:\phpstudy_pro\WWW\www.xymegento.com>D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup -h
这里主要是-h选项是查看当前命令(包含局部命令或选项如D:\phpstudy_pro\WWW\www.xymegento.com>D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.exe -c D:\phpstudy_pro\Extensions\php\php5.6.9nts\php.ini .\bin\magento setup:static-content:deploy -h)的一些帮助信息。
关键字词:magento
上一篇:歪果仁电商开源系统(porto)
下一篇:Magento2 ASK 第6期