简体   繁体   English

使用可移植的本地Web服务器运行Web服务器

[英]Running a webserver with a portable local webserver

We are developing a webapp that requires a local web server. 我们正在开发一个需要本地Web服务器的Webapp。 The problem is, we can't install anything on their machine for some reasons. 问题是,由于某些原因,我们无法在其计算机上安装任何软件。 Is there any alternative for this one? 这个有其他选择吗?

I think Nancy can do the trick for you. 我认为Nancy可以帮您解决问题。

Nancy 南希

I assume you are just searching a running http webserver which doesn't need to be extendable, if not the following won't apply for you. 我假设您只是在搜索运行中的http网络服务器,该服务器不需要是可扩展的,否则,以下内容将不适用于您。

If there is Java installed on that machine you can use one of the many "single-file-webservers" that are out there. 如果该计算机上安装了Java,则可以使用许多“单个文件Web服务器”之一。 For example: https://github.com/NanoHttpd/nanohttpd 例如: https : //github.com/NanoHttpd/nanohttpd

Or: http://www.eclipse.org/jetty/ 或者: http : //www.eclipse.org/jetty/

If you have Node.js running you will find even more, very simply and efficient solutions. 如果运行Node.js,您将找到更多,非常简单和有效的解决方案。

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

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