最容易为 Windows 设置本地网络服务器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15402370/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:21:15  来源:igfitidea点击:

Easiest to set up local webserver for Windows

windowswebserver

提问by juanpazos

I love POW for Mac, what's the most similar solution for Windows?

我喜欢 Mac 的 POW,Windows 最相似的解决方案是什么?

The easiest way on a Windows pc to put a local webserver running for website testing/developing?

在 Windows 电脑上运行本地网络服务器以进行网站测试/开发的最简单方法?

Thanks!

谢谢!

回答by Hongchao Li

It depends on which programming language/platform you'd like to start with. The most easiest way would be using the windows integrated IIS.

这取决于您想从哪种编程语言/平台开始。最简单的方法是使用 Windows 集成的 IIS。

  1. Windows XP/2000. Click Start then Run, type inetmgr.exeand press enter. you'll have iis window opened. If not, you need install this feature by default.
  2. Windows 7/Server 2008. Click Start then Run, type optionalfeaturesand press enter. Check "Internet Information Services" in the popped up window and click OK to "enable" this feature.
  1. 视窗 XP/2000。单击“开始”,然后单击“运行”,键入inetmgr.exe并按 Enter。你会打开 iis 窗口。如果没有,您需要默认安​​装此功能。
  2. Windows 7/Server 2008。单击开始,然后单击运行,键入optionalfeatures并按 Enter。在弹出的窗口中勾选“Internet 信息服务”,然后单击“确定”以“启用”此功能。

enable IIS

启用 IIS

Please refer ASP.netfor more information to host a website with IIS.

有关使用 IIS 托管网站的更多信息,请参阅ASP.net

If you don't like C#/VB.net etc. You still can download and install Apache Tomcatin windows to use Java, PHP and other language.

如果你不喜欢 C#/VB.net 等,你仍然可以在 windows 中下载和安装Apache Tomcat来使用 Java、PHP 和其他语言。