LoginSignup
1
1

macOSで簡単にローカルサーバーを立ち上げる

Posted at

ずっと下記記事の方法を使っていたが、macOS Sonomaから利用できなくなったので、情報更新。

pythonコマンドがなく、python3になりました。

1. ルートにしたいディレクトリで以下を実行

python3 -m http.server 8888

2. ブラウザで以下にアクセス

http://localhost:8888
http://0.0.0.0:8888

0.0.0.0の部分にはローカルIPを入れてください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1