---
title: "固まった rails を kill する"
description: "特定のポートで動いている rails を kill したい。（私のラップトップでは複数の rails サーバーが動いています。）"
canonical: https://oozou.com/til/kill-rails-that-got-stuck-63
locale: ja
date: 2020-10-13
topic: shell
---

# 固まった rails を kill する

> 特定のポートで動いている rails を kill したい。（私のラップトップでは複数の rails サーバーが動いています。）

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

特定のポートで動いている rails を kill したい。
（私のラップトップでは複数の rails サーバーが動いています。）

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

---

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

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