Localhost on Windows 7

2019-03-12 03:26发布

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?

2条回答
老娘就宠你
2楼-- · 2019-03-12 03:56

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
查看更多
smile是对你的礼貌
3楼-- · 2019-03-12 04:13

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

enter image description here

查看更多
登录 后发表回答