Localhost on Windows 7

只愿长相守 提交于 2019-12-03 09:27:09

问题


I want to enable a localhost on Windows 7 to be able to build websites with Chrome without a distant server. I would like to not install anything, and be able to, for example, navigate to http://localhost/something/somethingElse/index.html.

Anyone knows how?


回答1:


In order to activate localhost server on Windows 7 navigate to:

-> Control Panel -> Programs and Features -> Turn Windows features on or off

Then search for Internet Information Services and check its checkbox.

Wait for Windows to make the changes, no need for immediate restart, the server will be enabled.

You can now navigate to

127.0.0.1 

or

http://localhost



回答2:


There is a simple chrome extension "200 OK". Which runs a web server on localhost.

  • Custom port settings
  • Choose your project folder and start the server



来源:https://stackoverflow.com/questions/24340450/localhost-on-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!