Web服务器可以动态生成可执行文件吗? [英] Can a web server dynamically generate an executable on the fly?

查看:142
本文介绍了Web服务器可以动态生成可执行文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ninite.com 目前似乎正在做。



虽然他们有可能预先生成每个应用程序的组合,但似乎不太可能/ hacky。 / p>


使用此方法资源密集编译Windows可执行文件?一天可以做到〜100k次,没有昂贵的成本吗?我要问,因为Ninite宣布他们要付钱了,可以花费很多钱吗?


[ EDIT2]


下载不是很大,它只是一个小百万KB的基于Web的下载器+安装程序应用程序,知道要安装哪些应用程序。


^^关于这一点,由webapp提供的EXE文件命名为Ninite AIMP Audacity Chrome Digsby FastStone Installer.exe当给予20多个应用程序安装。 可能服务器在不同的文件名下提供相同的文件,然后应用程序根据文件名进行配置,否?

解决方案

该网站似乎没有创建可执行文件,但只提供他们下载。



创建这些巨大的下载在飞行中将在服务器上造成巨大的负担。此外,它可以创建错误的软件。所以我的猜测是,如果这些人知道他们在做什么,他们有一个服务器,预先包装所有的东西,测试它,然后将其转储到Web服务器的下载目录。



但是当然,没有什么可以阻止服务器调用任何类型的程序(也许除了冲浪者的耐心之外)。所以他们可以运行编译器,存档器,无论如何。


Ninite.com seems to be doing it currently. I'm wondering how.

While it's possible for them to have every combination of app pre-generated, it seems unlikely/hacky.

[EDIT]

Is compiling a Windows executable using this method resource-intensive? Can it be done ~100k times a day without exorbitant cost? I'm asking because Ninite announced that they're going paid-only... can it be costing them that much?

[EDIT2]

The downloads aren't huge, it's just a small hundred KB web-based downloader+installer app that knows which apps to install.

^^ Regarding this, the EXE file served up by the webapp is named something like Ninite AIMP Audacity Chrome Digsby FastStone Installer.exe when given 20+ apps to install. It's probably likely that the server is serving up the same file under different filenames, and the app is then configuring itself based on the filename, no?

解决方案

The site doesn't seem to create executable but just provide them for download.

[EDIT] Creating those huge downloads on the fly would create a huge burden on the server. Moreover it could create buggy software. So my guess is, if these people know what they're doing, they have a server which prepackages everything, tests it and then dumps it in the download directory of the web server.

But of course, nothing stops a server from invoking any kind of program (with maybe the exception of the patience of the surfer). So they can run compilers, archivers, whatever.

这篇关于Web服务器可以动态生成可执行文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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