1
2

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 5 years have passed since last update.

Laravelのartisan serveでポート80を指定したらエラーが出た

Posted at

背景

Laravelのphp artisan serveを使用すると自動的にポート8000が割り当てられます。
$ php artisan serve
Laravel development server started on http://127.0.0.1:8000/

ポート80を指定した場合に、エラーが出てしまいました。
$ php artisan serve --port=80
Laravel development server started on http://127.0.0.1:80/
[Thu Apr 13 21:08:44 2017] Failed to listen on 127.0.0.1:80 (reason: Permission denied)

対応

sudoを付けて、artisan serveコマンドを実行する。
$ sudo php artisan serve --port=80
Password:入力してね
Laravel development server started on http://127.0.0.1:80/

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?