使用 Recipe 安装 SAP Commerce Cloud

简介: 使用 Recipe 安装 SAP Commerce Cloud

Installing SAP Commerce Using Installer Recipes

要出于开发和演示目的自动安装 SAP Commerce,您可以使用安装程序配方。 Recipes 是负责创建目录、移动文件、更新配置和属性文件以及初始化系统的 gradle 脚本。

安装程序目前仅用于在开发环境中安装 SAP Commerce 或用于演示目的。 不要使用安装程序在生产环境中安装 SAP Commerce。 有关在生产环境中安装的说明,请参阅手动安装 SAP Commerce。


不要使用安装程序在同一个 SAP Commerce 上一个接一个地运行配方。 安装程序不会卸载以前的配置,也不会将您的 SAP Commerce 文件系统恢复到其原始设置。 要安装不同的配方,请使用干净的环境。

使用如下命令行在 Linux 系统安装 zip 和 unzip 工具:

yum install -y unzip zip;

检查下载文件的 hash 是否正确:

命令:

certutil -hashfile 文件名

我下载的是 Commerce Cloud 2011:

Move the custom.properties file from spartacussampledata/resources/installer/customconfig to hybris-commerce-suite-2011/installer/customconfig.文件内容如图:

进行安装,发现环境变量 JAVA_HOME 没有设置:

Windows10 系统上,JAVA_HOME 环境变量如下:

使用 echo $PATH 查看当前系统变量:

java -version 返回结果,说明环境变量安装成功:

环境变量配置如下:

执行命令:./install.sh -r cx-for-spa

遇到新的错误:

java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

我 Windows10 上使用的是版本 11:

那么我就试试降级到版本11.

因为有人在 StackOverflow 上说,这是因为 jdk 版本太高,而 gradle 版本太旧造成的:

现在一切正常了:

一分钟执行完毕:

紧接着执行初始化:

./install.sh -r cx-for-spa initialize

initialize 执行的时间比较长,需要耐心等待:

注意:如果使用 putty 等远程登录软件登录服务器,为了确保长时间没有输入而不至于断掉同服务器端的连接,需要在 Connection - Seconds between keepalives 里设置一个非零值。可以设置为 60,这样每隔1分钟,putty 会向服务器发送 keepalives 的报文。

1cc50bd1b4d1e0416aba382266cdb65e.png

相关文章
|
2月前
|
UED
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
|
2月前
|
机器学习/深度学习 搜索推荐 UED
SAP Commerce Cloud Context Driven Services 概述
SAP Commerce Cloud Context Driven Services 概述
|
2月前
|
监控 搜索推荐 安全
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
|
2月前
|
存储 消息中间件 搜索推荐
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
|
2月前
|
机器学习/深度学习 人工智能 搜索推荐
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
|
2月前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
|
2月前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
|
2月前
|
Web App开发 数据采集 前端开发
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
|
2月前
|
XML 存储 数据格式
SAP UI5 控件 customData 属性的应用介绍
SAP UI5 控件 customData 属性的应用介绍
|
2月前
|
前端开发 JavaScript API
SAP UI5 sap.ui.require.toUrl 的作用介绍
SAP UI5 sap.ui.require.toUrl 的作用介绍