netstat -tunlp
查看端口占用时发现很多rpc进程,这些进程是什么?
它们占用的端口能否关闭?
\[root@i-kuqpn95k ~\]# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:\* LISTEN \-
tcp 0 0 0.0.0.0:49091 0.0.0.0:\* LISTEN 1291/rpc.mountd
tcp 0 0 0.0.0.0:38917 0.0.0.0:\* LISTEN 1291/rpc.mountd
tcp 0 0 0.0.0.0:55527 0.0.0.0:\* LISTEN \-
tcp 0 0 0.0.0.0:111 0.0.0.0:\* LISTEN 1147/rpcbind
tcp 0 0 0.0.0.0:33649 0.0.0.0:\* LISTEN 1291/rpc.mountd
tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN 1471/sshd
tcp 0 0 0.0.0.0:44406 0.0.0.0:\* LISTEN 1192/rpc.statd
tcp 0 0 :::2049 :::\* LISTEN \-
tcp 0 0 :::50534 :::\* LISTEN 1291/rpc.mountd
tcp 0 0 :::50383 :::\* LISTEN 1192/rpc.statd
tcp 0 0 :::111 :::\* LISTEN 1147/rpcbind
tcp 0 0 :::33682 :::\* LISTEN \-
tcp 0 0 :::41781 :::\* LISTEN 1291/rpc.mountd
rpc相服务进程啊,你不用的化就关,否则别动它,很多服务都会用到,比如nis nfs