0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel Sailが起動できない(自分用)

Last updated at Posted at 2024-02-27

Laravel プロジェクトの作成でのエラーについて

コマンドでLaravel Sailを起動したところ...

$ cd example-app
$ ./vendor/bin/sail up
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:80 -> 0.0.0.0:0: listen tcp 0.0.0.0:80: bind: address already in use

http://localhost/ にアクセスしてもLaravel の起動画面が表示されない。

対処法

参考
https://01memo.com/docker/ports-error1/

// ターミナルに入力
sudo lsof -i:80
// 実行結果
COMMAND   PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
httpd    7262   root   15u  IPv6 0x879c8e7bc96759a9      0t0  TCP *:http (LISTEN)
httpd    7266 daemon   15u  IPv6 0x879c8e7bc96759a9      0t0  TCP *:http (LISTEN)
..(省略)...

解決

// ターミナルに入力
sudo kill 7262

http://localhost/ にアクセスしてLaravel の起動画面が表示されるようになった!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?