Install Liferay as Windows 2012R2 service

前端 未结 3 1417
遥遥无期
遥遥无期 2021-01-03 14:49

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

相关标签:
3条回答
  • 2021-01-03 15:10

    I had to delete what was in Java Options completely or it wouldn't start: and then I entered:

    -XX:MaxPermSize=512m
    -Dfile.encoding=UTF8
    -Duser.timezone=America/New_York
    -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
    -Djava.net.preferIPv4Stack=true
    

    note that where I am: America/New_York allows for both EST and EDT

    0 讨论(0)
  • 2021-01-03 15:15

    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

    0 讨论(0)
  • 2021-01-03 15:26

    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 and tomcat7w.exe to this location : LIFERAY_HOME\tomcat\bin

    1. Setting Up the service

    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 command

    service.bat install tomcat7
    

    This will install the tomcat6 service in windows. Now execute following commond to setup additional configuration for the service

    tomcat7w.exe ES tomcat7.exe
    

    enter image description here

    2 . Extra configuration :

    -XX:MaxPermSize=512m
    -Dfile.encoding=UTF8
    -Duser.timezone=GMT
    -Djava.security.auth.login.config="%CATALINA_HOME%/conf/jaas.config"
    -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
    

    and make sure to provide enough memory for your service by setting the initial memory pool and the maximum one. enter image description here

    0 讨论(0)
提交回复
热议问题