查看linux进程, 服务 和端口占用情况

chkconfig --list
lsof -i
查看Linux下端口占用情况的命令 - VPS管理百科

http://www.bootf.com/186.html

[root@iZ25yj7b8f3Z ~]# lsof -i
COMMAND     PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sshd        881     root    3u  IPv4   8599      0t0  TCP *:ssh (LISTEN)
ntpd        889      ntp   16u  IPv4   8641      0t0  UDP *:ntp 
ntpd        889      ntp   17u  IPv4   8645      0t0  UDP localhost:ntp 
ntpd        889      ntp   18u  IPv4   8646      0t0  UDP iZ25yj7b8f3Z:ntp 
ntpd        889      ntp   19u  IPv4   8647      0t0  UDP 123.57.39.109:ntp 
AliYunDun  1008     root   27u  IPv4 226937      0t0  TCP 123.57.39.109:37364->110.75.102.62:http (ESTABLISHED)
sshd       1054     root    3u  IPv4   9526      0t0  TCP 123.57.39.109:ssh->118.85.194.38:62699 (ESTABLISHED)
memcached 13187     root   26u  IPv4 227722      0t0  TCP *:memcache (LISTEN)
memcached 13187     root   27u  IPv4 227727      0t0  UDP *:memcache 
sshd      26891     root    3r  IPv4 277196      0t0  TCP 123.57.39.109:ssh->60.247.94.14:48788 (ESTABLISHED)
epmd      27355     root    3u  IPv4  54849      0t0  TCP *:epmd (LISTEN)
epmd      27355     root    5u  IPv4  55292      0t0  TCP localhost:epmd->localhost:33210 (ESTABLISHED)
beam      27461 rabbitmq    7u  IPv4  55289      0t0  TCP *:25672 (LISTEN)
beam      27461 rabbitmq    8u  IPv4  55291      0t0  TCP localhost:33210->localhost:epmd (ESTABLISHED)
beam      27461 rabbitmq   16u  IPv4  55663      0t0  TCP *:amqp (LISTEN)
beam      27461 rabbitmq   17u  IPv4  55669      0t0  TCP *:15672 (LISTEN)

[root@iZ25yj7b8f3Z ~]# chkconfig --list
abrt-ccpp      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
abrtd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
acpid          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
aegis          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
auditd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
blk-availability	0:off	1:on	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:off	3:off	4:off	5:off	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
gshelld        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
haldaemon      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:off	3:off	4:off	5:off	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
quota_nld      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rabbitmq-server	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rngd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
svnserve       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不止鱼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值