linux53端口,53端口被占用,但找不出是哪个程序占用

└─[3] <> sudo netstat -anlp | grep -w LISTEN

tcp 0 0 0.0.0.0:29917 0.0.0.0:* LISTEN 1938/wineserver

tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 606/php-fpm: master

tcp 0 0 127.0.0.1:8911 0.0.0.0:* LISTEN 1938/wineserver

tcp 0 0 0.0.0.0:6800 0.0.0.0:* LISTEN 660/aria2c

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 657/nginx: master p

tcp 0 0 0.0.0.0:5298 0.0.0.0:* LISTEN 1860/pidgin

tcp 0 0 127.0.0.1:10101 0.0.0.0:* LISTEN 1938/wineserver

tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1/init

tcp 0 0 127.0.0.1:8118 0.0.0.0:* LISTEN 648/privoxy

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 587/cupsd

tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN 639/python

tcp 0 0 0.0.0.0:8057 0.0.0.0:* LISTEN 1938/wineserver

tcp6 0 0 :::3306 :::* LISTEN 562/mysqld

tcp6 0 0 :::5298 :::* LISTEN 1860/pidgin

tcp6 0 0 ::1:631 :::* LISTEN 587/cupsd

看上面是init程序占用了53端口,但init程序不是管理运行级的吗?怎么会占用端口? 如何处理

sudo systemctl status dnsmasq.service

● dnsmasq.service - A lightweight DHCP and caching DNS server

Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Tue 2015-09-01 09:24:22 CST; 12min ago

Docs: man:dnsmasq(8)

Process: 2945 ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file (code=exited, status=2)

Process: 2944 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=0/SUCCESS)

Main PID: 2945 (code=exited, status=2)

Sep 01 09:24:22 SimonT61 systemd[1]: Starting A lightweight DHCP and caching DNS server...

Sep 01 09:24:22 SimonT61 dnsmasq[2944]: dnsmasq: syntax check OK.

Sep 01 09:24:22 SimonT61 systemd[1]: dnsmasq.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

Sep 01 09:24:22 SimonT61 systemd[1]: Failed to start A lightweight DHCP and caching DNS server.

Sep 01 09:24:22 SimonT61 systemd[1]: dnsmasq.service: Unit entered failed state.

Sep 01 09:24:22 SimonT61 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.

Sep 01 09:24:22 SimonT61 dnsmasq[2945]: dnsmasq: failed to create listening socket for port 53: Address already in use

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值