chkconfig --list
lsof -i
查看Linux下端口占用情况的命令 - VPS管理百科
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