Authored by henry

deploy config

... ... @@ -4,8 +4,8 @@
<group>
<!--yoho-search-autoconfig-->
<property name="yoho.searchservice.env.webapphome" defaultValue="/home/test/yoho-search-service/deploy" description="应用根目录"/>
<property name="yoho.searchservice.env.serverport" defaultValue="8" description="应用端口"/>
<property name="yoho.searchservice.env.namespace" defaultValue="yohosearchservice" description="应用命名空间"/>
<property name="yoho.searchservice.env.serverport" defaultValue="7" description="应用端口"/>
<property name="yoho.searchservice.env.namespace" defaultValue="search-service" description="应用命名空间"/>
<property name="yoho.env.javahome" defaultValue="/usr/local/java" description="" />
<property name="yoho.env.productmode" defaultValue="TEST" description="" />
<property name="yoho.env.serverhome" defaultValue="/usr/local/tomcat" description="" />
... ...
... ... @@ -19,7 +19,7 @@
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="810${yoho.search.env.serverport}" shutdown="SHUTDOWN">
<Server port="810${yoho.search.service.env.serverport}" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
... ... @@ -66,7 +66,7 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="808${yoho.search.env.serverport}" protocol="HTTP/1.1"
<Connector port="808${yoho.search.service.env.serverport}" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
... ... @@ -88,7 +88,7 @@
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="800${yoho.search.env.serverport}" protocol="AJP/1.3" redirectPort="8443" />
<Connector port="800${yoho.search.service.env.serverport}" protocol="AJP/1.3" redirectPort="8443" />
<!-- An Engine represents the entry point (within Catalina) that processes
... ...
set JAVA_MEM_OPT= -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true
set JAVA_HOME=/usr/local/java
set WEB_APP_HOME=/home/dev/yoho-search/deploy
set WEB_APP_HOME=/home/master/yoho-search-service/deploy
set CATALINA_HOME=/usr/local/tomcat
set CATALINA_BASE=/home/dev/yoho-search/deploy/tomcat_server
set CATALINA_BASE=/home/master/yoho-search/deploy/tomcat_server
rem set JAVA_DEBUG_OPT= -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8082,server=y,suspend=n
... ...
... ... @@ -6,16 +6,16 @@ BASE_BIN_DIR=`dirname $0`
. $BASE_BIN_DIR/functions.sh
export JAVA_HOME=/usr/local/java
export WEB_APP_HOME=/home/dev/yoho-search/deploy
export WEB_APP_HOME=/home/master/yoho-search-service/deploy
export SERVER_PORT=8
export PRODUCTION_MODE="TEST"
export SERVER_HOME=/usr/local/tomcat
export SERVER_TYPE=tomcat
export SERVER_NAMESPACE=yohosearch
export SERVER_NAMESPACE=search-service
export GW_URL=$Gateway_URL
export SERVER_BASE_DIR=" -Dcatalina.base=/home/dev/yoho-search/deploy/.tomcat "
export SERVER_BASE_DIR=" -Dcatalina.base=/home/master/yoho-search-service/.tomcat "
export NAMING_PORT=`expr 9000 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8080 + $SERVER_PORT`
... ...