0
0

More than 1 year has passed since last update.

reason: Address already in use でPHPのサーバーに接続できない

Last updated at Posted at 2022-01-27

手順

1.使用しているPID番号(プロセスID)を確認

ps ax | grep php

ターミナルで上記のように入力すると、現在しているポートが表示される。

[vagrant@localhost My_php]$ ps ax | grep php
 8241 pts/0    S+     0:01 php -S 192.168.33.10:8000

※一番左の数字が「PID番号」なので、上記の例だと「8241」

2.既に解放しているプロセスを終了する

kill PID番号

3.再度、php -S 192.168.33.10:8000 を実行

参考サイト

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