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

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

问题描述

Ninite.com 目前似乎正在这样做.我想知道怎么做.

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

虽然他们可以预先生成各种应用程序组合,但这似乎不太可能/hacky.

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

使用这种方法编译 Windows 可执行文件会占用大量资源吗?可以在没有过高成本的情况下每天完成 10 万次吗?我问是因为 Ninite 宣布他们将只付费……这会让他们花那么多钱吗?

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?

下载量并不大,它只是一个几百 KB 的基于网络的下载器+安装器应用程序,它知道要安装哪些应用程序.

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

^^ 关于这一点,当需要安装 20 多个应用程序时,由 web 应用程序提供的 EXE 文件被命名为类似于 Ninite AIMP Audacity Chrome Digsby FastStone Installer.exe.很可能服务器以不同的文件名提供相同的文件,然后应用程序根据文件名配置自己,不是吗?

^^ 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.

动态创建那些巨大的下载会给服务器带来巨大的负担.此外,它可能会创建有缺陷的软件.所以我的猜测是,如果这些人知道他们在做什么,他们就有一个服务器,可以预先打包所有东西,测试它,然后将它转储到网络服务器的下载目录中.

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天全站免登陆