appium 在运行过程中崩溃了,再次启动 appium 的时候,出现端口被占用的提示信息,日志片段如下:

> Checking if an update is available
> Update not available
> Starting Node Server
> error: Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already.
> 
> 
> Node Server Process Ended

解决方法:
windows 环境下:
在任务管理器中找到 node.exe*32 进程,杀掉后重新启动 appium 即可;
linux 环境下:
killall -9 node 或 ps -ef | grep node | xargs kill -9


↙↙↙阅读原文可查看相关链接,并与作者交流