如何使用 Visual Web Developer 在 Internet 上托管网站

发布于 2024-11-15 22:40:58 字数 212 浏览 8 评论 0原文

我从过去两周开始刚刚开始使用 ASP.NET,并在 Visual Web Developer 上创建了一个网站。
我正在尝试将我的网站放到网上.我试图通过谷歌找到它,但它非常混乱且不完整。
请有人告诉我如何使用IIS在我的电脑上托管网络服务器。 如果您认为我在执行此操作之前需要了解更多信息,请建议一些在线材料来帮助我。

I just started working with ASP.NET from last two weeks and I created a website on Visual web developer.
I'm trying to put my website on the net.I tried to find it through google but it's very confusing and incomplete.
Please can anybody tell me how to use IIS to host a web server on my PC.
If you think I need to learn more before doing this please suggest some online material to help me out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷情 2024-11-22 22:40:58

在 iis 上添加网站的基本点是在服务器上

  • DNS,在您的服务器上设置域名。
  • 为新站点创建池(如果不存在)。
  • 在 iis 上创建一个新站点,并向其应用池。
  • 确保所有目录和文件都具有连接到池运行帐户的正确权限。

通常所有这些步骤都是由提供商自动完成的,提供商会为您提供一个 ftp 帐户和一个用于管理它们的网页。使用 ftp 帐户将文件上传到服务器,并使用网页可以管理有关运行的一些详细信息。

现在,所有这些总的来说都有太多细节,但如果您知道基本步骤并用谷歌搜索它们,我相信您可以进入下一步。

关于 dns

我使用 BIND dns 服务器 来管理服务器上的 dns。自己进行 DNS 是一项完整的工作,并不那么容易,但有些工具可以自动完成所有工作,例如 PLESK。

关于池

池可以同时运行多个站点,也可以仅运行一个,可以有多个线程,也可以仅运行一个。可以设置在 asp.net ver 2 或 ver 4 上运行。这完全取决于您和您的设置。池对于让您的应用程序顺利运行非常重要。从一个线程开始,仅当您将站点设计为在多个线程上同步运行时才添加更多线程。检查回收应用程序的池的限制,因为如果您添加太少的内存作为回收限制,那么您的应用程序可能会一直回收并且运行不流畅。使用进程资源管理器查找池运行一段时间时所需的内存量,然后设置此限制。

关于权限

您上传的asp.net 站点由分配给它的池运行。现在,假设该池在用户名下运行:ASPPOOL。接下来要考虑的是,站点上的所有文件和目录都必须具有 ASPPOOL 读取的权限。额外的权限可以添加到数据库文件,以获得读/写的权限。

All Together

Provides 通常使用 PLESK 之类的管理程序来自动执行所有这些步骤。

如果您要在 IIS5.1 上本地运行它,

在这种情况下只有您可以看到该站点。因此,您可以避免使用 dns,但可以在 c:\WINDOWS\system32\drivers\etc\hosts 文件中添加站点名称,以便更好地进行调试。您还可以避免困难的权限。 iis 5.1 上的池仅在一个线程下运行。

希望这有帮助。

The basic point to add your site on iis, on a server is.

  • DNS, setup the domain name on your server.
  • Create a pool (if not exist) for the new site.
  • Create a new site on iis, and apply to it the pool.
  • Make sure that all directories and files have the correct permission that are connected to the pool running account.

Usually all this steps make automatically by provider, and provider gives yous an ftp account, and a web page to manage them. Using the ftp account you upload your files to the server, and using the web page you can manage some details about the run.

Now all that in general have too many details, but if you know the basic steps and google them I believe that you can go to the next step.

About dns

I use the BIND dns server to manage my dns on the server. Dns by him self is a full person job, is not that easy, but some tools do all that automatic like PLESK.

About pool

The pool can run many site together, or only one, can have many threads, or only one. Can setup to run on asp.net ver 2 or ver 4. This is all depends from you and your setup. The pool is very important to make your application run smooth. Start with one thread and add more threads only if you have design your site to run on more threads with synchronization. Check the limits of the pool that recycle your app, because if you add too little memory as limit to recycle then your app can recycle all the time and not run smooth. Use the process explorer to find the amount of memory your pool need when you run it for some time, and then setup this limits.

About permission

The asp.net site that you upload it running by the pool that assign to it. Now the pool let say that is run under the user name:ASPPOOL. The next think is that all your files and directories on your site must have permission to be read by the ASPPOOL. Extra permission can add to the database files, to have access to read/write.

All together

Provides usually use a manager program like PLESK to automate all that steps.

If you with to run it locally on IIS5.1

In this case only you can see the site. So you avoid the dns, but you can add your site name on c:\WINDOWS\system32\drivers\etc\hosts file for better debugging. Also you can avoid the difficult permissions. And the pool on iis 5.1 is run only under one thread.

Hope this help.

想你的星星会说话 2024-11-22 22:40:58

我认为你没有抓住重点。 Visual Web Developer 是一个 IDE,而不是 Web 服务器。而 VWD 确实包含 Cassini,它是 IIS 的精简开发版本,仅用于本地开发。如果您想托管一个可以通过互联网访问更广泛世界的网站,那么您需要将其托管在连接到互联网的托管服务器上。

当然,您可以在自己的计算机上本地运行 IIS 并将其托管在此处,但您需要自己的 Internet 连接具有静态 IP 地址或使用 DynDNS 等服务将域名映射到动态 IP 地址。此外,您还将开放自己的计算机和网络以应对潜在问题,因为您将扩大攻击面。

我强烈建议您研究一个简单的托管帐户并在那里运行它。如果您不确定自己在做什么,这对您来说将是一个更简单的选择。

I think you're missing the point here. Visual Web Developer is an IDE and not a web server. While VWD does include Cassini, which is a cut-down development version of IIS for local development only. If you want to host a site that is accessible to the wider world via the internet then you need to host it on a hosting server that is connected to the internet.

Of course you could run IIS locally on your own machine and host it there, but you would require your own internet connection to have either static IP address or use a service such as DynDNS to map a domain name to a dynamic IP address. Also you would be opening your own machine and network open to potential issues, as you would be widening your attack surface area.

I would strongly suggest that you look into a simple hosting account and get it working on there. It would be a much simpler option for you if you're unsure of what you're doing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文