首页 > 编程知识 正文

哪些端口被进程使用,端口是否被占用命令

时间:2023-05-03 11:24:38 阅读:172276 作者:980

(([3] sudo netstat-anlp|grep-w listen

TCP 00.0.0.03360299170.0.0.0: * listen 1938/wine服务器

TCP 0127.0.0.1:9000.0.0.0: * listen 606/PHP-fpm :主机

TCP 0127.0.0.1:89110.0.0.0: * listen 1938/wine server

TCP 00.0.0.033606800.0.0.0: * listen 660/aria 2c

TCP 00.0.0.0:80.0.0.0: * listen 657/nginx : masterp

TCP 00.0.0.0336052980.0.0.0: * listen 1860/pidgin

TCP 0127.0.0.1:101010.0.0.0: * listen 1938/wine server

TCP 0127.0.0.1:530.0.0.0: * listen1/init

TCP 0127.0.0.1:81180.0.0.0: * listen 648/privoxy

TCP 0127.0.0.1:6310.0.0.0: * listen 587/cupsd

TCP 0127.0.0.1:1080.0.0.0: * listen 639/python

TCP 00.0.0.0:80570.0.0.0: * listen 1938/wine server

TCP 603360336033603360336033603360336033063360336033603360: * listen 562/mysqld

TCP 603360336033603360336033605298336033603360336033603360 * listen 1860/pidgin

TCP 60336033601336013360133606313360631336033603360336033600 * listen 587/cupsd

上面的init程序占用了53个端口,init程序不是在管理运行级吗? 怎么占用端口? 怎么处理

sudosystemctlstatusdnsmasq.service

active :故障(结果:退出代码(since tue 2015-09-0109336024336022 CST ); 12min ago

DOCS:man:dnsmasq(8) )

process 33602945 execstart=/usr/bin/dnsmasq-k-- enable-dbus-- user=dnsmasq-- PID-file (code=exited,STI )

process 33602944 execstartpre=/usr/bin/dnsmasq-- test (code=exited,status=0/SUCCESS ) ) ) ) ) ) ) ) )。

mainPID:2945(code=exited,status=2) ) ) ) ) ) ) ) ) ) )。

sep 0109336024336022 Simon t61 systemd [1] : startingalightweightdhcpandcachingdnsserver .

sep 0109336024336022 Simon t61 dnsmasq [ 2944 ] : dnsmasq 3360 syntaxcheckok。

EP 0109:24336022 Simon t61 systemd [1] : dnsmasq.service : mainprocessexited,code=exited,status=2/invalid

sep 0109336024336022 Simon t61 systemd [1] : failedtostartalightweightdhcpandcachingdnsserver。

sep 0109336024336022 Simon t61 systemd [1] : dnsmasq.service : unitenteredfailedstate。

sep 0109336024336022 Simon t61 systemd [1] : dnsmasq.service : failedwithresult ' exit-code '。

sep 0109336024336022 Simon t61 dnsmasq [ 2945 ] : dnsmasq 3360 failedtocreatelisteningsocketforport 5: adddresalreadyinuse

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。