grunt serve Fatal error: Port 35729 is already in use by another process.

本文详细介绍了如何使用Unix/Linux系统中的lsof和ps命令来监控进程的状态和活动,包括进程ID、监听端口等关键信息。通过这些命令,可以有效地管理系统资源并诊断可能的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

y@y:~$ lsof | grep 35729
grunt     18194                y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
Optimizin 18194 18195          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
v8:Sweepe 18194 18196          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
v8:Sweepe 18194 18197          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
v8:Sweepe 18194 18198          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
grunt     18194 18295          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
grunt     18194 18296          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
grunt     18194 18297          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
grunt     18194 18298          y   13u     IPv6             117971       0t0      TCP *:35729 (LISTEN)
y@y:~$ ps -ef | grep grunt
y         8705  8501  0 17:54 pts/27   00:00:00 grep --color=auto grunt
y        18194  4497  3 08:57 pts/11   00:20:06 grunt                                     
y@y:~$ kill -9 18194
y@y:~$ ps -ef | grep grunt
y         8715  8501  0 17:54 pts/27   00:00:00 grep --color=auto grunt
y@y:~$ lsof | grep 35729
y@y:~$ 

 

转载于:https://www.cnblogs.com/yshyee/p/4586639.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值