---
title: "Kill rails that got stuck"
description: "I'd like to kill rails running w/specific port. (My laptop running several rails servers. )"
canonical: https://oozou.com/til/kill-rails-that-got-stuck-63
locale: en
date: 2020-10-13
topic: shell
---

# Kill rails that got stuck

> I'd like to kill rails running w/specific port. (My laptop running several rails servers. )

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

I'd like to kill rails running w/specific port.
(My laptop running several rails servers. )

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

---

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

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