【问题标题】:Configure tcServer in Hybris在 Hybris 中配置 tcServer
【发布时间】:2015-05-04 14:33:57
【问题描述】:

如何在Hybris 中配置tcServer

我在/bin/platform/project.properties中找到了tcServer设置,需要配置哪些属性?

tomcat.context.template=${HYBRIS_CONFIG_DIR}/tomcat/tomcat_context.tpl

# The directory into which files created by "ant production" are created
#production.output.path=${HYBRIS_TEMP_DIR}/hybrisServer

# Choose the type of server: tomcat or tcserver
bundled.server.type=tcserver

# Absolute path to tomcat
#bundled.tomcat.home=${platformhome}/tomcat

#Version of tomcat server
#bundled.tomcat.version=7.0.52

# Absolute path to tcserver
bundled.tcserver.home=${HYBRIS_CONFIG_DIR}/tcServer

# tcserver's tomcat version
bundled.tcserver.tomcat.version=7.0.42.A.RELEASE

# Relative path to tcserver's tomcat
bundled.tcserver.tomcat.home=tomcat-${bundled.tcserver.tomcat.version}

# Name of an server instance
#bundled.tcserver.instance=instance1

# Name of an instance template to use: hybris or hybris_insight
bundled.tcserver.template=hybris


production.output.path=${HYBRIS_TEMP_DIR}/hybrisServer

【问题讨论】:

  • 问题不清楚。你想达到什么目标?
  • 默认情况下 hybris 在 tomact 上运行,但我想在 tcServer 上运行?请电话配置它的步骤

标签: hybris tcserver


【解决方案1】:

自 5.1 版起,hybris 不再提供 tcserver 嵌入了 hybris 平台。为了使用 tc 服务器 需要独立安装并配置hybris平台 使用此服务器。

启用 SpringSource tcServer:

在 5.1 版之前,SpringSource tcServer 随 hybris 平台一起提供。要启用它,您必须:

  1. 打开 local.properties 文件。
  2. 对于 bundled.server.type 属性,设置值 tcserver。
  3. 设置 bundled.tcserver.instance 属性。
  4. 调用ant deployant all(已包含部署调用),用于将配置文件从您的{HYBRIS_CONFIG_DIR}/tcServer/conf 文件夹部署到tcSServer 实例。如果 SpringSource tcServer 实例尚未创建,则由部署过程隐式创建。

运行 SpringSource tcServer

  1. 在 Windows 上:调用 tcserver.bat instance_name 来自平台的 bin 目录。
  2. 在 Linux 上:调用 ./tcserver.sh instance_name 来自平台的 bin 目录。

记得将 instance_name 替换为要运行的 tcServer 实例的实际名称。

更多详情,请点击此链接:

https://wiki.hybris.com/display/release5/SpringSource+tcServer

【讨论】:

  • 我这样做了,但在服务器启动时我发现 server=tomcat only
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-11-15
  • 2021-02-12
  • 1970-01-01
  • 2018-06-13
  • 1970-01-01
  • 2018-06-22
  • 1970-01-01
相关资源
最近更新 更多