Grunt Server:Fatal error: Port 35729 is already in use by another process.

时间:2023-09-19 15:46:44

提示35729端口被占用,使用lsof命令进行查看:

y@y:yo-test$ lsof -i :
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
chrome y 213u IPv4 0t0 TCP localhost:->localhost: (ESTABLISHED)
ionic y 13u IPv6 0t0 TCP *: (LISTEN)
ionic y 14u IPv6 0t0 TCP localhost:->localhost: (ESTABLISHED)

35729被ionic测试项目占用,把ionic项目停止后就可以了。

y@y:myapp1$ ionic serve
Running dev server: http://192.168.0.165:8100
Running live reload server: http://192.168.0.165:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit ionic $ q
y@y:myapp1$