其中,Local Address 列的地址是本地的IP地址和
端口
号。netstat(network statistic)是一个命令行工具,可以用来
查看
网络相关的运行状态,包括网络连接,路由表,接口状态等等。其中,COMMAND 表示进程名,PID 表示进程号,USER 表示进程的运行用户,TYPE 表示连接类型,FD 表示连接的文件描述符,SIZE/OFF 表示
占用
的资源大小等。ss 命令是 netstat 命令的替代品,可以列出更详细的网络连接状态信息。$ sudo lsof -i :
端口
号。
一键解决adb
端口
被
占用
一键解决"* daemon not running. starting it now on port 5037 *
* daemon started successfully *
** daemon still not running
error: cannot connect to daemon"问题
一键解决adb devices时 adb
程序
闪退问题。
Address already in use.
Port 27005 is in use by another program. Either identify and stop that program, or start the server with a different port.
sudo update-alternatives--install/usr/bin/python python/usr/bin/python2 1
sudo update-alternatives--install/usr/bin/python python/usr/bin/python3 2