首页 > 其他分享 > Port XXX is already in use. xxxx..解决办法-gradio退出可用

Port XXX is already in use. xxxx..解决办法-gradio退出可用

时间:2023-08-04 15:59:06浏览次数:44  
标签:use already xxxx PID 0.0 端口 tcp 5601 LISTEN

原因:端口被占用,程序启动后关闭但端口依然存在

解决办法:手动杀死端口

 


 

1.安装工具(已经有的不需要安装,直接跳到第二步)

yum install net-tools -y

命令介绍:

yum:自动化简单化地管理rpm包的命令。

install:安装

net-tools:网络工具

 

2.安装完毕,执行查看端口命令: netstat -tpln

[root@hadoopnode01 bin]# netstat -tpln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1214/master
tcp        0      0 192.168.137.150:5601    0.0.0.0:*               LISTEN      1879/./../node/bin/
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      996/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1214/master
tcp6       0      0 192.168.137.150:9200    :::*                    LISTEN      1955/java

有关介绍:netstat命令是一个监控TCP/IP网络的非常有用的工具,它可以显示路由表、实际的网络连接以及每一个网络接口设备的状态信息。

3.杀死端口:kill -9 XXX(端口对应的PID)

 例如:此时显示5601端口已占用,则找到5601端口对应的PID为1879,执行命令 kill -9 1879

 

4.再次运行程序即可

标签:use,already,xxxx,PID,0.0,端口,tcp,5601,LISTEN
From: https://www.cnblogs.com/chentiao/p/17606145.html

相关文章

  • grep - useful options
    The“-c”optioncountsthenumberofoccurrencesofastring:eventhoughABC4.shhasnomatches,itstillcountsthemandreturnszero:grep–cabc*shTheoutputoftheprecedingcommandishere:ABC4.sh:0abc3.sh:3The“-e”optionletsyoumatch......
  • SSRS 2016 DeviceInfo Name already exists Parameter name: deviceInfoName
    https://learn.microsoft.com/en-us/answers/questions/784851/ssrs-2016-deviceinfo-name-already-exists-parameterhttps://social.msdn.microsoft.com/Forums/sqlserver/en-US/5b4acc6d-058b-4c40-b916-cc634bb35f61/ssrs-2012-deviceinfo-name-already-exists-parmeter-n......
  • Codeforces Round 424 (Div. 1)D. Singer House
    传送门显然要自底向上进行\(dp\)深度相同的子树结构相同所以可以利用深度来代表子树。那么就应该统计出有向路径的个数。考虑路径由链所拼成。那么状态里应该有有向链的条数。设\(f_{i,j}\)表示深度为\(i\)链条数为\(j\)的方案数。不选当前的节点则\(f_{i,j}=f_{i+1,k}\cdot......
  • Uncaught SyntaxError: Identifier 'originalPrompt' has already been declared
    控制台报错:UncaughtSyntaxError:Identifier'originalPrompt'hasalreadybeendeclared网上查询相关资料,预测是GoogleChrome浏览器安装了插件跟Vue项目运行代码出现了冲突。解决方法:关闭相关插件即可,【可能导致问题产生的插件有:SeleniumIDE】。参考文档:http://www.dtm......
  • Use Eclipse to develop groovy[docs.codehaus.org]
    http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Pluginhttp://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+Project Groovy-EclipseisthesetofEclipsepluginsthatprovideEclipsesupportforGroovyprojects.InstallationThelat......
  • use iproc to config tdr during bscan
    1.casedescriptionwhenrunningbscan,aserialsofpinsneedtobecontrolledto1bytdr;astaticdftsignalwithdefaultvalue1wasregisteredby register_static_dft_signal_names,addedascontrolpointofthosepins;however,valuesarenot......
  • 生成随机User-Agent的第三方库
     安装pipinstallr-useragent使用fromrandom_useragentimportUserAgent​u=UserAgent()​#generateandroiduser-agentprint(u.android()) #randomprint(u.android(app="app"))print(u.android(app="webview"))print(u.android(app="uc&......
  • Vhost-user协议 — QEMU 8.0.0 文档 翻译版
    Vhost-user协议—QEMU8.0.0文档翻译版(先机翻,然后自己人工翻译一整天)PDF版免费送! 联系qq:2426149954,备注:“QEMU+PDF版 ”;Word版RM5!联系qq:2426149954,备注:“QEMU+Woed版 ”。  欢迎联系~       ......
  • 如何在 React 18 中使用 useSyncExternalStore
    原文useSyncExternalStore是React18中提供的自定义挂钩,可让您订阅外部存储并在外部存储更新时更新您的React组件。它对于订阅不是建立在React状态管理之上的外部存储特别有用。useSyncExternalStoreAPI您应该在组件的顶层调用useSyncExternalStore方法import{useSyncExte......
  • Linux:user is not in the sudoers file. This incident will be reported 解决方法
    学习自:userisnotinthesudoersfile.Thisincidentwillbereported解决方法_一路奔跑94的博客-CSDN博客1、原因没有在权限文件中说明该用户具有sudo权限2、解决步骤1)以root身份去/etc/sudoers文件中,编辑vi/etc/sudoers2)在rootALL=(ALL)ALL之下添加一行xxxALL......