gatsby develop
Bei der Ausführung wurde Folgendes angezeigt
error Looks like develop for this site is already running, can you visit http://localhost:8000 ? If it is not, try again in five seconds!
http://localhost:8000 Bei der Überprüfung wird nichts angezeigt, und der gleiche Fehler tritt auch dann auf, wenn ich es nach 5 Sekunden erneut versuche.
Wenn Sie `` `Gats by Develop``` mehrmals ausführen
Something is already running at port 8000
✔ Would you like to run the app at another port instead? … yes
Ich fragte mich, ob es auf einem anderen Port lief http://localhost:8001 http://localhost:8002 Ich habe nachgesehen und gesehen, aber es wird nichts angezeigt
Beenden Sie den Knotenprozess, der localhost verwendet.
$lsof -i | grep node
node 15390 user 18u IPv6 182160 0t0 TCP *:50402 (LISTEN)
node 15404 user 20u IPv6 182176 0t0 TCP *:33269 (LISTEN)
node 18498 user 42u IPv4 225478 0t0 TCP localhost:8000 (LISTEN)
node 18984 user 42u IPv4 225478 0t0 TCP localhost:8002 (LISTEN)
node 18938 user 42u IPv4 225478 0t0 TCP localhost:8001 (LISTEN)
node 18938 user 44u IPv6 223182 0t0 TCP *:38749 (LISTEN)
node 18951 user 18u IPv6 223200 0t0 TCP *:50400 (LISTEN)
node 18958 user 25u IPv4 224178 0t0 TCP localhost:34455 (LISTEN)
node 18965 user 20u IPv6 223192 0t0 TCP *:42389 (LISTEN)
Töte den Prozess
$kill -9 18498
$kill -9 18984
$kill -9 18938
https://github.com/gatsbyjs/gatsby/discussions/26869