Setting Up Liferay Portal on tc Server 2.9.3

This guide is on how to set up tc Server 2.9.3.


  1. Download the tc Server zip file called:
  2. Open a command prompt to /../vfabric-tc-server-standard-2.9.3.RELEASE. This location will be shortened to {tc Server Home}
  3. Run the command: mkdir servers
  4. Run the command: tcruntime-instance.bat|sh create -i servers lp-server
  5. Navigate to {tc Server Home}/servers/lp-server/conf. Open the **wrapper.conf** file.
  6. Change '-Xmx' to 1024m in
  7. Change change `-Xss` to 512k in
  8. Add"-XX:MaxPermSize=256m".
  9. Add"-Dfile.encoding=UTF-8".
  10. Save and close the file.
  11. In the {tc Server Home}/servers/lp-server/conf, create a new folder called **Catalina**.
  12. In the {tc Server Home}/servers/lp-server/conf/Catalina, create a new folder called localhost. In the {tc Server Home}/servers/lp-server/conf/Catalina/localhost, create a new file called ROOT.xml.
  13. In ROOT.xml, enter the following:
    <Context path="" crossContext="true">
    			<!-- JAAS -->
    			<!--<Realm className="org.apache.catalina.realm.JAASRealm"
                roleClassNames="" />-->
    			<!-- Uncomment the following to disable persistent sessions across reboots. -->
               <!-- Uncomment the following to not use sessions. See the property "session.disabled" in -->
              <!-- <Manager className="" /> -->
  14. In the {tc Server Home}/servers/lp-server/conf folder, open the server.xml file.
  15. Add URIEncoding="UTF-8" to the Connector property so it looks like this:
    <Connector acceptCount="100"
  16. Unlike Tomcat where dependencies are deployed to the 'lib/ext' folder, dependencies for tc Server are deployed directly in the 'lib' folder. Copy all the following .jars:
    • activation.jar
    • ccpp.jar
    • hsql.jar
    • jta.jar
    • jutf7.jar
    • mail.jar
    • mysql.jar
    • persistence.jar
    • portal-service.jar
    • portlet.jar
    • postgresql.jar
    • script-10.jar
  17. Next, configure the {tc Server Home}/servers/lp-server/bin/setenv.bat| Add this property to the end of the file: set JVM_OPTS=-Dfile.encoding=UTF-8 -Xmx1024M -Xss512K -XX:MaxPermSize=512m
  18. We are now ready to deploy the portal. Navigate to {tc Server Home}/servers/lp-server/webapps/ROOT. Delete any default content in this folder. Unzip the Liferay .war file here. Note that the .war file can come from either the packager or by running **ant -f build-dist.xml zip-portal-war** in the source folder.
  19. Set the parallel to the /lp-server inside the {tc Server Home}/servers folder. Configure the to run on MySQL.
  20. Enable or disable the startup wizard in the
  21. In the /bin folder, enter: tcruntime-ctl.bat run |./ run
  22. To shut down, CTRL + C will suffice
0 人中有 0 人觉得有帮助