简体   繁体   English

在FreeBSD共享服务器上安装GlassFish

[英]Install GlassFish on FreeBSD shared server

I asked this on superuser as well, but with no answers (even no views). 我也对超级用户问过这个问题,但是没有答案(甚至没有意见)。 If it's wrong to mention it here, please let me know or just move it. 如果在这里提到它是错误的,请告诉我或者只是移动它。 Thanks. 谢谢。

We are using a shared server (six people with root access for each user), which is reinstalled and -configured soon. 我们使用的是共享服务器(每个用户六名具有root用户访问权限的服务器),该服务器将很快重新安装并配置。 I agreed to install GlassFish for everyone to use. 我同意安装GlassFish供所有人使用。 However, I am developer and do only know basiscs of Unix/Linux. 但是,我是开发人员,只知道Unix / Linux的基础知识。

Now my question is, what do I have to consider if I want to meet these requirements: 现在我的问题是,如果要满足以下要求,我应该考虑什么:

Automatic startup on reboot (did not happen often in the past) Easy integration with Apache Usage of existing MySQL/PostgresSQL instance Patterns/Tools for easy (shared) usage (installation of Java EE apps, administration) Patterns/Tools for easy (shared) monitoring (resources (mem, db), applications) Tools for easing remote development (EJB/WAR deployment, JRebel?) Of course, there might be other topics I forgot which should be addressed. 在重新启动时自动启动(过去没有经常发生)与Apache的轻松集成使用现有的MySQL / PostgresSQL实例模式/工具以便于(共享)使用(安装Java EE应用程序,管理)模式/工具以便于(共享)监控(资源(mem,db),应用程序)用于简化远程开发的工具(EJB / WAR部署,JRebel?)当然,可能还有其他我忘记应该解决的主题。

Automatic start up under FreeBSD can simply be implemented using a start-up script which should just do 'asadmin start-domain' to start glassfish and 'asadmin stop-domain'. 在FreeBSD下自动启动可以简单地使用启动脚本来实现,该脚本应该只执行'asadmin start-domain'来启动glassfish和'asadmin stop-domain'。 I'm sure there's a number of articles on start-up script creation for your version of FreeBSD (I would check FreeBSD Handbook first). 我确定你的FreeBSD版本有很多关于启动脚本创建的文章(我会首先查看FreeBSD手册)。 As to remote deployments - you just need a local copy of glassfish and should use it's asadmin utility - it has command line arguments that allow doing any administrative tasks with remote glassfish installations as long as you have admin password on them. 至于远程部署 - 你只需要一个glassfish的本地副本,并且应该使用它的asadmin实用程序 - 它具有命令行参数,只要你有管理员密码就可以执行远程glassfish安装的任何管理任务。

If you have experience with Windows only then I would strongly consider using a Windows box for this. 如果您只有Windows经验,那么我强烈考虑为此使用Windows盒。 The Glassfish distribution has functionality to register a given domain as a service, and I would suggest that you just create a domain for each developer. Glassfish发行版具有将给定域注册为服务的功能,我建议您仅为每个开发人员创建一个域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM