简体   繁体   English

如果我正在运行 WAMP/MAMP/LAMP 堆栈,是否必须使用 PHP?

[英]Do I have to use PHP if I am running a WAMP/MAMP/LAMP stack?

If I want to use Ruby or Python or any other OOP language other than PHP while still running a WAMP/LAMP/MAMP stack so I can still use Windows/MySQL/Apache is that a good idea?如果我想在运行 WAMP/LAMP/MAMP 堆栈的同时使用 Ruby 或 Python 或除 PHP 以外的任何其他 OOP 语言,这样我仍然可以使用 Windows/MySQL/Apache,这是个好主意吗? Are there better stacks I should look into?我应该研究更好的堆栈吗? And if this is ok to do, why isn't it called a WAM[choose-your-adventure] instead of a WAMP...?如果可以这样做,为什么不将其称为 WAM[选择您的冒险] 而不是 WAMP...?

P does not stands for the PHP only (saying about all of them), it could also mean Python if you wish. P 不仅仅代表 PHP(指的是所有的 PHP),如果您愿意,它也可以代表 Python。

And all this is just words, till the moment you understand advantages and prospects of each.所有这一切都只是文字,直到您了解各自的优势和前景为止。

So, the right question is what should you consider also.所以,正确的问题是你还应该考虑什么。

I think you'd like LEMP (E stands for the Ngnix, for many projects it'd be better than Apache; yet, is totally disputable)我想你会喜欢 LEMP(E 代表 Ngnix,对于许多项目来说,它比 Apache 更好;然而,这是完全有争议的)

https://lemp.io/ https://lemp.io/

Also, it's quite popular nowadays to use Node.js as a server (MEAN software bundle).此外,现在非常流行使用 Node.js 作为服务器(MEAN 软件包)。 Yet, it is totally different from what you are looking at, - whole bundle is either javascript, or js-based frameworks, as you can understand from the name of it.然而,它与您所看到的完全不同,- 整个捆绑包要么是 javascript,要么是基于 js 的框架,正如您可以从它的名称中理解的那样。

https://en.wikipedia.org/wiki/MEAN_(software_bundle) https://en.wikipedia.org/wiki/MEAN_(software_bundle)

It is quite a big subject to dig in, - surf for it on the net.这是一个相当大的主题,需要深入挖掘,- 在网上冲浪。 Main idea - you'd better understand deeply what lays beyond each bundle, so you can get, if it fits to your project, or not.主要思想 - 你最好深入了解每个包之外的内容,这样你就可以知道它是否适合你的项目。

It's better to use Nginx for front http-server.最好使用 Nginx 作为前端 http 服务器。

Here is a simple setup for Nginx with php-fpm, and example for RoR application . 这是Nginx 与 php-fpm 的简单设置,以及RoR 应用程序的示例。

Windows usually runs ASP.NET applications with IIS. Windows 通常使用 IIS 运行 ASP.NET 应用程序。

For your situation better to use Linux+Nginx+MariaDB+PHP-FPM对于你的情况最好使用 Linux+Nginx+MariaDB+PHP-FPM

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

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