在 Linux 服务器上托管 Silverlight 应用程序有什么问题吗?
我正在为摄影工作室构建一个新的 Silverlight 应用程序。 我正想说“你必须有一个基于 Windows 的服务器来托管它”,然后我想,等等,是这样吗? 看来并非如此。 所以我可以把他指向一个 Linux 主机。
我知道你必须注册 MIME 类型(来自不同的 SO 线程)。 还有其他我需要了解的注意事项或陷阱吗? 假设我对 Linux 几乎一无所知。
编辑:如果应用程序需要与数据库(mySQL)对话怎么办? 看来我需要月光才能实现这一点,但它不会飞。
I'm building a new Silverlight app for a photography studio. I was about to say "you have to have a Windows-based server hosting it" and then I thought, wait is that right? Looks like it's not. So I could point him toward a Linux host.
I know you have to register the MIME types (from a different SO thread). Are there any other caveats or gotchas that I need to know about? Assume for a second that I know next to nothing about Linux.
Edit: what if the app needs to talk to a database (mySQL)? Seems like I'd need to have Moonlight to get that going, which isn't gonna fly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您唯一需要做的就是确保 Web 服务器为 .xap(即 application/x-silverlight-app)提供正确的 MIME 类型。 就是这样。
The only thing you have to do is ensure the web server delivers the correct MIME type for the .xap (which is application/x-silverlight-app). That's it.
没有什么可以阻止您在任何平台上的任何网络服务器中托管 Silverlight 应用程序(客户端插件)。
There is nothing blocking you to host a Silverlight app(Client Plug-in) in any webserver on any platform.
Silverlight 是客户端技术。 在非 MS 服务器上托管不需要任何东西(除了 MIME 类型)。 但是,如果您有服务器端代码(例如 Web 服务或与 mySQL 数据库通信的 REST API),则该服务器端技术需要在 Linux 上运行。 这与 Silverlight 完全分开。 您可能想使用 Java 或 PHP(或其他 Linux 友好的平台)来完成服务器工作,但 Silverlight 并不关心它与什么内容交谈,并且可以轻松地在非 MS 平台中提供服务。
Silverlight is client technology. There is nothign (but MIME types) that are required to host on non-MS servers. But if you have server-side code (e.g. web services or REST API's talking to your mySQL db), that server-side technology would need to work on Linux. That's completely separate from Silverlight. You might want to do the server stuff with Java or PHP (or other Linux-friendly platform) but Silverlight doesn't care what it talks to and can be served in a non-MS platform easily.
关于您的编辑(在mysql上)——不,您不需要Moonlight(因为这也只是客户端)。 正如 Shawn 所说,您需要通过某种服务层公开数据库功能。
Regarding your edit (on mysql) -- no you would not need Moonlight (as that is client only as well). You'd need to expose your database functionality through a service layer of sorts as Shawn notes.