was_commerce

WebSphere Commerce

Start Commerce server1 :

/opt/ibm/WebSphere/AppServer/profiles/demo_solr/bin/startServer solrServer

Start Commerce HTTP :

/opt/ibm/HTTPServer/bin/apachectl -k start -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/httpconf/httpd.conf

Start Solr HTTP :

/opt/ibm/HTTPServer/bin/apachectl -k start -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/solr/home/httpconf/httpd.conf

Post-install Steps

Publish starter store :

Setup Solr

./config_ant.sh -buildfile /wcs/IBM/WebSphere/CommerceServer80/components/foundation/subcomponents/search/deploy/deploySearch.xml -DinstanceName=demo -DdbUserPassword=broodi -DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true

Pre-Process solr index :

./di-preprocess.sh /wcs/IBM/WebSphere/CommerceServer80/instances/demo/search/pre-processConfig/MC_10001/DB2 -instance demo -dbuser datauser -dbuserpwd broodi -fullbuild true -onelevel true -multithread true

Setup Solr indexes :

/opt/ibm/WebSphere/CommerceServer80/components/foundation/subcomponents/search/bin/setupSearchIndex.sh -instance demo -masterCatalogId 10001 -dbuser datauser -dbuserpwd e3ec37df0e -solrhome /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/solr/home -setupWebContent true

Restart Solr server :

/opt/ibm/WebSphere/AppServer/profiles/demo_solr/bin/stopServer.sh solrServer (username : configadmin)
/opt/ibm/WebSphere/AppServer/profiles/demo_solr/bin/startServer.sh solrServer

Pre-process Solr index :

/opt/ibm/WebSphere/CommerceServer80/bin/di-preprocess.sh /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/pre-processConfig/MC_10001/DB2 -instance demo -dbuser datauser -dbuserpwd e3ec37df0e -multithread true

Build the search index :

./di-preprocess.sh /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/pre-processConfig/MC_10001/DB2 -instance demo -dbuser datauser -dbuserpwd e3ec37df0e -multithread true

startAll.ksh :

#!/usr/bin/env ksh

# start DB2
su - db2inst1 -c "db2start"

# stop WAS

su - wcsuser -c "/opt/ibm/WebSphere/AppServer/profiles/demo/bin/startServer.sh server1"
su - wcsuser -c "/opt/ibm/WebSphere/AppServer/profiles/demo_solr/bin/startServer.sh solrServer"

# Stop IHS
/opt/ibm/HTTPServer/bin/apachectl -k start -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/httpconf/httpd.conf
/opt/ibm/HTTPServer/bin/apachectl -k start -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/solr/home/httpconf/httpd.conf

exit 0

stopAll.ksh :

#!/usr/bin/env ksh

# stop WAS

su - wcsuser -c "/opt/ibm/WebSphere/AppServer/profiles/demo_solr/bin/stopServer.sh solrServer -username configadmin -password e3ec37df0e"
su - wcsuser -c "/opt/ibm/WebSphere/AppServer/profiles/demo/bin/stopServer.sh server1 -username configadmin -password e3ec37df0e"

# Stop IHS
/opt/ibm/HTTPServer/bin/apachectl -k stop -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/httpconf/httpd.conf
/opt/ibm/HTTPServer/bin/apachectl -k stop -f /opt/ibm/WebSphere/CommerceServer80/instances/demo/search/solr/home/httpconf/httpd.conf

# stop DB2
su - db2inst1 -c "db2stop force"

exit 0

  • was_commerce.txt
  • Last modified: 2019/10/18 20:04
  • by 127.0.0.1