๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Lect & Tip/node, Angular, React

linux killall node command use in windows taskkill /f /im node.exe Starting inspector on 127.0.0.1:9229 failed: address already in use

by ๋‚ฏ์„ ๊ณต๊ฐ„2019 2019. 2. 26.

๋ชฉ์ฐจ

    ๐Ÿ›ซ VScode๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด, ๊ฐ„ํ˜น 

    Starting inspector on 127.0.0.1:9229 failed: address already in use

    ์—๋Ÿฌ๊ฐ€ ๋œฐ ๋•Œ๊ฐ€ ์žˆ๋‹ค.

    ์ด๋ฏธ ์‚ฌ์šฉํ•˜๋˜ ์„œ๋ฒ„ ํƒœ์Šคํฌ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ํด๋กœ์ฆˆ ๋˜์ง€ ์•Š์•„์„œ ์ฃผ๋กœ ๋ฐœ์ƒํ•˜๋Š”๋ฐ...

    ์ด๊ฑธ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ํ”„๋กœ์„ธ์Šค๊ฐ€ ์ž๋™์œผ๋กœ ์ฃฝ์„ ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฌ๊ณค ํ–ˆ๋‹ค.

    ๋ฆฌ๋ˆ…์Šค์—์„œ๋Š” 

    killall node

    ๋ช…๋ น์–ด๋กœ ํ•ด๊ฒฐ์ด ๋˜์ง€๋งŒ, ์œˆ๋„์šฐ์— ๋Œ€์‘ํ•˜๋Š” ๋ช…๋ น์–ด๋ฅผ ๋ชฐ๋ž๋‹ค.

    ๊ฒฐ๋ก ์„ ๋งํ•˜์ž๋ฉด ๋Œ€์‘ ๋ช…๋ น์–ด๋Š” 

    taskkill

    ์ด๋‹ค.

    ์ด๋ฏธ ์ž˜ ์ฃฝ์ง€ ์•Š๋Š” ํ”„๋กœ์„ธ์Šค๊ฐ€ ์‚ด์•„์„œ ํฌํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๊ทธ๋ƒฅ taskkill๋งŒ ์จ์„  ์•ˆ๋˜๊ณ  /f ์˜ต์…˜์„ ๊ฐ™์ด ์จ์„œ ๊ฐ•์ œ ์ข…๋ฃŒํ•ด์•ผ ํ•œ๋‹ค.

    C:\Work\2nd-round>taskkill /im node.exe

    ์˜ค๋ฅ˜: ํ”„๋กœ์„ธ์Šค "node.exe"(PID 1744)์„(๋ฅผ) ์ข…๋ฃŒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

    ์›์ธ: ์ด ํ”„๋กœ์„ธ์Šค๋Š” /F ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ•์ œ๋กœ ์ข…๋ฃŒํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    ์˜ค๋ฅ˜: ํ”„๋กœ์„ธ์Šค "node.exe"(PID 2716)์„(๋ฅผ) ์ข…๋ฃŒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

    ์›์ธ: ์ด ํ”„๋กœ์„ธ์Šค๋Š” /F ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ•์ œ๋กœ ์ข…๋ฃŒํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    ์„ฑ๊ณต: ํ”„๋กœ์„ธ์Šค "node.exe" (PID 11384)์— ์ข…๋ฃŒ ์‹ ํ˜ธ๋ฅผ ๋ณด๋ƒˆ์Šต๋‹ˆ๋‹ค.

    ์˜ค๋ฅ˜: ํ”„๋กœ์„ธ์Šค "node.exe"(PID 11804)์„(๋ฅผ) ์ข…๋ฃŒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

    ์›์ธ: ์ด ํ”„๋กœ์„ธ์Šค๋Š” /F ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ•์ œ๋กœ ์ข…๋ฃŒํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    https://stackoverflow.com/questions/14790910/stop-all-instances-of-node-js-server

    ๋น„๋ฐ€๊ณผ ๊ฑฐ์ง“๋ง ์˜ค์Šน์•„ ๋ž€์ œ๋ฆฌ ํ™”๋ณด ๋ณด๋”” ๊ฐ€๋“œ ํ™”๋ณด

    ๋น„๋ฐ€๊ณผ ๊ฑฐ์ง“๋ง ์˜ค์Šน์•„ ๋ž€์ œ๋ฆฌ ํ™”๋ณด ๋ณด๋”” ๊ฐ€๋“œ ํ™”๋ณด

    ๋ฐ˜์‘ํ˜•

    ๋Œ“๊ธ€