本人安装Magento2.4.6安装踩坑大集合

admin2年前IT技术794


1.痛点1 composer 的版本查看命令输入错误,导致我以为我安装失败
 composer --version或者 composer -V

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.6 mine -vvv

2.phpcli.ini 没有设置,导致命令安装128M内存没法设置,导致安装失败

3.--search-engine=elasticsearch7 \ 没有写7与多写了密码验证,不需要密码验证

4.后台二次认证

5.分析过程出差错

6.php的的禁用函数没有删除 putenv proc_open 

7 该装的扩展没有安装 intl xsl inforfile fileinfo igbinary

8.二次认证有关联的依赖模块,删除过程如下:

        bin/magento module:disable Magento_AdminAdobeImsTwoFactorAuth

        删除这个后,要吧cache的缓存权限用777覆盖一下

        bin/magento module:disable Magento_TwoFactorAuth

        bin/magento module:status

        bin/magento cache:flush

9.安装elasticsearch7 

参考:
https://blog.csdn.net/zlxls/article/details/130071498
https://www.cnblogs.com/Likfees/p/16449224.html

Elasticsearch 版本 7.17.4
下载地址:https://www.elastic.co/cn/downloads/past-releases/elasticsearch-7-17-4

使用宝塔面板,请安装Tomcat8及以上,就可以自动安装jdk1.8了,如果需要手动安装jdk,请自行百度,查看JDK版本命令

java -version

安装流程

1.下载安装包

解压到 /usr/local/目录,并命名为elasticsearch();命名根据实际情况,不影响操作


2.修改配置文件

/usr/local/elasticsearch/config/elasticsearch.yml


 


配置 Elasticsearch# 

#标识允许所有ip访问

network.host: 0.0.0.0 

node.name: node-1

discovery.seed_hosts: ["node-1"]

cluster.initial_master_nodes: ["node-1"]


3.修改配置文件

/etc/security/limits.conf


# 配置内容   *表示所有用户生效

* soft nofile 65536

* hard nofile 65536

修改完成后使用如下命令使配置生效


ulimit  -H -n

4.修改配置文件

/etc/sysctl.conf


vm.max_map_count = 655360

修改完成后使用如下命令使配置生效


/sbin/sysctl -p

5.新增es用户

elasticsearch不支持使用root启动


useradd es

 

passwd es

系统会提示输入密码:根据提示输入两边密码即可


6.修改访问权限

chown -R es:es /usr/local/elasticsearch

7. 启动

cd /usr/local/elasticsearch/bin/

 

su es

 

#直接启动

./elasticsearch

 

#后台运行,运行方式有很多,有的后面跟&符号也可以

 

sh elasticsearch -d 

8.测试成功与否

浏览器输入:ip:9200,前提是放开了端口


否则就在doc输入:


curl -X GET http://localhost:9200

出现以下代码,说明成功:


 curl -X GET http://localhost:9200

{

  "name" : "7FsdbnR",

  "cluster_name" : "elasticsearch",

  "cluster_uuid" : "UzB85mRRTqG0uly9Wjp1uQ",

  "version" : {

    "number" : "6.2.3",

    "build_hash" : "c59ff00",

    "build_date" : "2018-03-13T10:06:29.741383Z",

    "build_snapshot" : false,

    "lucene_version" : "7.2.1",

    "minimum_wire_compatibility_version" : "5.6.0",

    "minimum_index_compatibility_version" : "5.0.0"

  },

  "tagline" : "You Know, for Search"

}

9.完整的安装命令如下:

bin/magento setup:install \

--base-url=http://49.51.33.194 \

--db-host=localhost \

--db-name=magento \

--db-user=magento \

--db-password=CbsBcZSxGYetmTyS \

--admin-firstname=admin \

--admin-lastname=admin \

--admin-email=test@163.com \

--admin-user=admin \

--admin-password=admin123 \

--language=en_US \

--currency=USD \

--timezone=America/Chicago \

--use-rewrites=1 \

--search-engine=elasticsearch7 \

--elasticsearch-host=localhost \

--elasticsearch-port=9200 \

--elasticsearch-index-prefix=magento2 \

--elasticsearch-timeout=15 \


相关文章

虾苗

  (1)虾苗要规格整齐规格不整齐的虾投放后,在养殖中后 期不仅会出现大虾欺小虾现象,而且由于大小虾蜕壳很不整齐, 易导致自相残食。稚虾规格要求在0.8厘米以上,幼虾个...

acme.sh 使用文档

acme.sh 使用文档

这是acme.sh的使用文档,介绍了如何使用ACME协议自动管理和获取SSL/TLS证书,包括安装、注册、手动和自动签发证书,以及自动部署和更新证书的过程。ACME是"Automatic C...

google关键词规划师的使用方法

第一步:设置国家第二步:设置语言第三部:设置上一步的同语系的关键词 如果没有第一步与第二步  会导致没有关键词提示!!!!...

搭建KMS

搭建环境:CentOS7X64。标题说了是两种方法,这里分别为vlmcsd和py-kms,我就先尝试使用vlmcsd来搭建。使用Xshell登录到你的VPS内,先确定一下你这台机器的CPU架构:cat...

关于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可以看到里面定义大小...

发表评论    

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