Pages

Thursday, April 13, 2023

open terminal on your Mac and run a http server locally.

open terminal on your Mac and run a http server locally.

lookang@Opens-MacBook-Pro ~ % cd /Users/lookang/Desktop/index\(2\)

lookang@Opens-MacBook-Pro index(2) % sudo npm install -g http-server

Password:

added 39 packages in 822ms

10 packages are looking for funding

  run `npm fund` for details

lookang@Opens-MacBook-Pro index(2) % http-server

Starting up http-server, serving ./

http-server version: 14.1.1

http-server settings: 

CORS: disabled

Cache: 3600 seconds

Connection Timeout: 120 seconds

Directory Listings: visible

AutoIndex: visible

Serve GZIP Files: false

Serve Brotli Files: false

Default File Extension: none

Available on:

  http://127.0.0.1:8080

  http://172.16.64.156:8080

Hit CTRL-C to stop the server


No comments:

Post a Comment