LAMJ堆栈是否可能存在环境? [英] Is a LAMJ stack a possible environment?

查看:224
本文介绍了LAMJ堆栈是否可能存在环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Linux,Apache和MySQL上使用Java而不是PHP?

Is it possible to use Java instead of PHP with Linux, Apache and MySQL?

推荐答案

'LAMP'堆栈不是什么特别的东西,只是它在形式或框架等方面有很多支持.创建基于Linux,Apache,MySQL和Java(LAMJ)的应用程序没有问题,但是与LAMP相比,它具有完全不同的优缺点,因为Java与PHP完全不同.

the 'LAMP' stack is not some special thing, only that there is a lot of support in the form or frameworks etc based on it. There is no problem to create an application based on Linux, Apache, MySQL and Java (LAMJ) but it will have totally different benefits and drawbacks than LAMP because Java is so totally different from PHP.

MySQL曾经是Java开发人员的首选数据库,我相信现在已经转向PostgreSQL.有些人喜欢 NoSQL数据库类似于MongoDB,但这确实与您要使用的Java框架相关.另外,您还需要某种Web容器来运行Java Web应用程序.最流行的仍然是Web服务器,例如Tomcat,我认为,您也可以使用Jetty.对于需要更广泛的应用程序管理支持和群集的大型项目,可以考虑使用Glassfish或JBoss.

Where MySQL used to be the database of choice for Java developers I believe that has now shifted towards PostgreSQL. Some folk like NoSQL databases like MongoDB but that really ties into the Java frameworks you want to use. Also you need some sort of web container to run your Java web application in. The most popular is still a web server like Tomcat I think, you could also use Jetty. For larger projects requiring more extensive application management support and clustering you could consider Glassfish or JBoss.

也许您应该考虑使用LTPJ堆栈(Linux Tomcat PostgreSQL Java).我认为这将为您提供更多的社区支持方式.

Maybe you should consider an LTPJ stack (Linux Tomcat PostgreSQL Java). I think that will give you more joy in the way of community support.

2019年更新.在我看来,标准"已经转移到了Spring Boot,通过它,您可以使用嵌入式Tomcat实例将Web应用程序作为独立的jar运行. Spring Boot为管理端点(例如应用程序运行状况)提供了许多开箱即用的支持,例如Spring Actuator.

2019 update. In my perception the 'standard' has shifted to Spring Boot, with which you can run a web application as a standalone jar using an embedded Tomcat instance. Spring Boot offers a lot of out of the box support like Spring Actuator for management endpoints (e.g. application health).

这篇关于LAMJ堆栈是否可能存在环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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