I am a newbie on Liferay and furthermore 100% Windows infrastructure knowledge based. I installed Liferay 6.2 on my Windows 2012R2 server together with Java jdk-8u5 version. All is running perfect as long as I am logged in as user on the Server via remotedesktop having open the tomcat startup.bat window. What have I to do exactly to start Liferay and/or tomcat as service?
Thanks in advance for your efforts.
Either go with Rafik Beldi's answer (quite an effort, wow) or just go to tomcat's documentation in case you're still missing some information
I had to delete what was in Java Options completely or it wouldn't start: and then I entered:
note that where I am: America/New_York allows for both EST and EDT
Configuring liferay or tomcat to run as a service on a windows server doesn't differ that much.So in order to do that you have to add some files to the
LIFERAY_HOME\tomcat\bin
directory.To get those files you have to download a full version of 64-bitWindows tomcat from here : http://tomcat.apache.org/download-70.cgi. Extract the zip and go to the bin directory, copy
service.bat
,tomcat7.exe
andtomcat7w.exe
to this location :LIFERAY_HOME\tomcat\bin
Open the commad prompt (Make sure you have admin rights or run the command prompt as administrator),In Command Prompt go to
LIFERAY_HOME\tomcat\bin
and Execute the following commandThis will install the tomcat6 service in windows. Now execute following commond to setup additional configuration for the service
2 . Extra configuration :
and make sure to provide enough memory for your service by setting the initial memory pool and the maximum one.