Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created March 31, 2015 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotty3000/60fb09fc8285d55cc563 to your computer and use it in GitHub Desktop.
Save rotty3000/60fb09fc8285d55cc563 to your computer and use it in GitHub Desktop.
Setting up Liferay 7.0 M4 with details on OSGi
#!/bin/bash
# Get it!
wget http://sourceforge.net/projects/lportal/files/Liferay%20Portal/7.0.0%20M4/liferay-portal-tomcat-7.0-ce-m4-20150224120313668.zip/download -O liferay-portal-tomcat-7.0-ce-m4.zip
# Unzip it!
unzip liferay-portal-tomcat-7.0-ce-m4.zip
# Trim off some legacy apps!
rm -rf liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/calendar-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/marketplace-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/opensocial-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/web-form-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/kaleo-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/notifications-portlet liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/resources-importer-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/sync-web liferay-portal-7.0-ce-m4/tomcat-7.0.42/webapps/welcome-theme
# Update the config for sake of demoing!
echo "setup.wizard.enabled=false" > liferay-portal-7.0-ce-m4/portal-setup-wizard.properties
# Some details you might want to know.
#
# Start the portal with:
#
# liferay-portal-7.0-ce-m4/tomcat-7.0.42/bin/start.sh
#
# Follow the logs with:
#
# tail -f liferay-portal-7.0-ce-m4/tomcat-7.0.42/logs/catalina.out
#
# The telnet server is at:
#
# telnet localhost 11311
#
# The portal is running at:
#
# http://localhost:8080 (u:test@liferay.com / p:test)
#
# Any Http Service / Http Whiteboard stuff you deploy will be rooted at:
#
# http://localhost:8080/o
#
# Felix webconsole is at:
#
# http://localhost:8080/o/system/console (u:admin / p:admin)
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment