portmap 和 rpc程序
生活随笔
收集整理的這篇文章主要介紹了
portmap 和 rpc程序
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Portmap 是為RPC 程序服務(wù)的。 每一個(gè)RPC server程序啟動(dòng)的時(shí)候要向portmap程序注冊(cè)。這樣portmap程序就知道這些RPC server監(jiān)聽(tīng)在哪個(gè)端口。 而RPC client在發(fā)起連接向portmap發(fā)起查詢(xún),知道了想要查詢(xún)的RPC server的監(jiān)聽(tīng)端口后再去連接server。這就是portmap的工作。 所以portmap要在RPC server啟動(dòng)之前啟動(dòng)。
Portmap從3,4版本開(kāi)始叫做 rpcbind。 通過(guò)下面的命令可以看到portmap或者叫rpcbind中記錄的內(nèi)容:
bash-2.03# rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100232 10 udp 32772 sadmind
100011 1 udp 32773 rquotad
100002 2 udp 32774 rusersd
100002 3 udp 32774 rusersd
100002 2 tcp 32772 rusersd
100002 3 tcp 32772 rusersd
100012 1 udp 32775 sprayd
100008 1 udp 32776 walld
100001 2 udp 32777 rstatd
100001 3 udp 32777 rstatd
100001 4 udp 32777 rstatd
100083 1 tcp 32773
100068 2 udp 32778
總結(jié)
以上是生活随笔為你收集整理的portmap 和 rpc程序的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: wuliao
- 下一篇: zabbix cpu监控介绍