---
title: "Kill rails ที่ค้าง"
description: "อยาก kill rails ที่รันอยู่บน port ที่ต้องการ (เครื่องรัน rails server อยู่หลายตัว)"
canonical: https://oozou.com/til/kill-rails-that-got-stuck-63
locale: th
date: 2020-10-13
topic: shell
---

# Kill rails ที่ค้าง

> อยาก kill rails ที่รันอยู่บน port ที่ต้องการ (เครื่องรัน rails server อยู่หลายตัว)

Published: 2020-10-13 · Topic: [shell](https://oozou.com/th/til-topics/shell) ([markdown](https://oozou.com/th/til-topics/shell.md))

อยาก kill rails ที่รันอยู่บน port ที่ต้องการ
(เครื่องรัน rails server อยู่หลายตัว)

*kill -9 $(lsof -i :3000|grep ruby|head -1|awk '\{print $2}')*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/th/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
