将Liferay安装为Windows 2012R2服务 [英] Install Liferay as Windows 2012R2 service

查看:84
本文介绍了将Liferay安装为Windows 2012R2服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Liferay的新手,并且还基于100%Windows基础架构知识.我在Windows 2012R2服务器上安装了Liferay 6.2和Java jdk-8u5版本.只要我以用户的身份通过打开tomcat startup.bat窗口的remotedesktop在服务器上登录,一切就可以完美运行. 我该怎么做才能将Liferay和/或tomcat作为服务启动?

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?

预先感谢您的努力.

推荐答案

将liferay或tomcat配置为在Windows服务器上作为服务运行并没有太大区别.因此,必须为此添加一些文件LIFERAY_HOME\tomcat\bin目录.

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.

要获取这些文件,您必须从此处下载完整版本的 64位Windows Tomcat : http://tomcat.apache.org/download-70.cgi . 解压缩zip并转到 bin 目录,将service.battomcat7.exetomcat7w.exe复制到以下位置:LIFERAY_HOME\tomcat\bin

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. 设置服务

打开命令提示符(请确保您具有管理员权限或以管理员身份运行命令提示符),在命令提示符"中转到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 command

service.bat install tomcat7

这将在Windows中安装tomcat6服务. 现在执行以下通用命令来设置服务的其他配置

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

tomcat7w.exe ES tomcat7.exe

2.额外的配置:

-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.

这篇关于将Liferay安装为Windows 2012R2服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆