[[email protected] ~]# yum install rpcbind
Installed:
rpcbind.x86_64 0:0.2.0-11.el6
Dependency Installed:
libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-6.el6_5.2
[[email protected] network-scripts]# ps -ef|grep rpc
root 3082 2368 0 17:54 pts/1 00:00:00 grep rpc
[[email protected] ~]# rpm -ql libgssglue
/etc/gssapi_mech.conf
/lib64/libgssglue.so.1
/lib64/libgssglue.so.1.0.0
[[email protected] ~]# rpm -ql libtirpc
/etc/netconfig
/lib64/libtirpc.so.1
/lib64/libtirpc.so.1.0.10
[[email protected] ~]# rpm -ql rpcbind
/etc/rc.d/init.d/rpcbind
/sbin/rpcbind
/usr/sbin/rpcinfo
/var/cache/rpcbind
[[email protected] ~]# service rpcbind start
Starting rpcbind: [ OK ]
[[email protected] ~]# ps -ef|grep rpc
rpc 1174 1 0 18:07 ? 00:00:00 rpcbind
root 1178 1140 0 18:07 pts/0 00:00:00 grep rpc
[[email protected] ~]# rpcbind start
[[email protected] ~]# ps -ef|grep rpc
rpc 3085 1 0 17:55 ? 00:00:00 rpcbind start
root 3087 2368 0 17:55 pts/1 00:00:00 grep rpc
[[email protected] ~]# rpcbind -a
-a (abort) specified without -d (debugging) -- ignored.
rpcbind: another rpcbind is already running. Aborting
[[email protected] ~]# rpcbind -i
rpcbind: another rpcbind is already running. Aborting
[[email protected] ~]# rpcbind -s
rpcbind: another rpcbind is already running. Aborting
[[email protected] ~]# rpcbind -w
rpcbind: another rpcbind is already running. Aborting
[[email protected] ~]# cd /proc/1174/fd
[[email protected] fd]# ls
0 1 10 11 2 3 4 5 6 7 8 9
[[email protected] fd]# ll
total 0
lrwx------. 1 root root 64 Sep 18 18:10 0 -> /dev/null
lrwx------. 1 root root 64 Sep 18 18:10 1 -> /dev/null
lrwx------. 1 root root 64 Sep 18 18:10 10 -> socket:[11434]
lrwx------. 1 root root 64 Sep 18 18:10 11 -> socket:[11435]
lrwx------. 1 root root 64 Sep 18 18:10 2 -> /dev/null
lr-x------. 1 root root 64 Sep 18 18:10 3 -> /var/run/rpcbind.lock
lrwx------. 1 root root 64 Sep 18 18:10 4 -> socket:[11450]
lrwx------. 1 root root 64 Sep 18 18:10 5 -> socket:[11425]
lrwx------. 1 root root 64 Sep 18 18:10 6 -> socket:[11427]
lrwx------. 1 root root 64 Sep 18 18:10 7 -> socket:[11429]
lrwx------. 1 root root 64 Sep 18 18:10 8 -> socket:[11430]
lrwx------. 1 root root 64 Sep 18 18:10 9 -> socket:[11432]
[[email protected] fd]# rpcinfo
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser
[[email protected] fd]# ss -ln
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 :::111 :::*
LISTEN 0 128 *:111 *:*
LISTEN 0 128 :::22 :::*
LISTEN 0 128 *:22 *:*
LISTEN 0 100 ::1:25 :::*
LISTEN 0 100 127.0.0.1:25 *:*
[[email protected] fd]# cd /var/cache/
[[email protected] cache]# ls
ldconfig rpcbind yum
[[email protected] cache]# cd rpcbind/
[[email protected] rpcbind]# ll
total 8
-rw-------. 1 rpc rpc 124 Sep 18 18:06 portmap.xdr
-rw-------. 1 rpc rpc 668 Sep 18 18:06 rpcbind.xdr
[[email protected] rpcbind]# file *
portmap.xdr: data
rpcbind.xdr: data
[[email protected] rpcbind]# yum install nfs-utils
Installed:
nfs-utils.x86_64 1:1.2.3-39.el6_5.3
Dependency Installed:
keyutils.x86_64 0:1.4-4.el6 libevent.x86_64 0:1.4.13-4.el6 nfs-utils-lib.x86_64 0:1.1.5-6.el6_5
[[email protected] rpcbind]# rpm -ql nfs-utils
/etc/nfsmount.conf
/etc/rc.d/init.d/nfs
/etc/rc.d/init.d/nfslock
/etc/rc.d/init.d/rpcgssd
/etc/rc.d/init.d/rpcidmapd
/etc/rc.d/init.d/rpcsvcgssd
/etc/request-key.d/id_resolver.conf
/etc/sysconfig/nfs
/sbin/mount.nfs
/sbin/mount.nfs4
/sbin/nfs_cache_getent
/sbin/rpc.statd
/sbin/umount.nfs
/sbin/umount.nfs4
/usr/sbin/exportfs
/usr/sbin/mountstats
/usr/sbin/nfsidmap
/usr/sbin/nfsiostat
/usr/sbin/nfsstat
/usr/sbin/rpc.gssd
/usr/sbin/rpc.idmapd
/usr/sbin/rpc.mountd
/usr/sbin/rpc.nfsd
/usr/sbin/rpc.svcgssd
/usr/sbin/rpcdebug
/usr/sbin/showmount
/usr/sbin/sm-notify
/usr/sbin/start-statd
/var/lib/nfs
/var/lib/nfs/etab
/var/lib/nfs/rmtab
/var/lib/nfs/rpc_pipefs
/var/lib/nfs/statd
/var/lib/nfs/statd/sm
/var/lib/nfs/statd/sm.bak
/var/lib/nfs/state
/var/lib/nfs/v4recovery
/var/lib/nfs/xtab
[[email protected] rpcbind]# rpm -ql nfs-utils-lib
/etc/idmapd.conf
/usr/lib64/libnfsidmap.so.0
/usr/lib64/libnfsidmap.so.0.3.0
/usr/lib64/libnfsidmap/nsswitch.so
/usr/lib64/libnfsidmap/static.so
/usr/lib64/libnfsidmap/umich_ldap.so
/usr/lib64/librpcsecgss.so.3
/usr/lib64/librpcsecgss.so.3.0.0
[[email protected] rpcbind]# rpm -ql keyutils
/bin/keyctl
/etc/request-key.conf
/etc/request-key.d
/sbin/request-key
[[email protected] rpcbind]# rpm -ql libevent
/usr/lib64/libevent-1.4.so.2
/usr/lib64/libevent-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2
/usr/lib64/libevent_core-1.4.so.2.1.3
/usr/lib64/libevent_extra-1.4.so.2
/usr/lib64/libevent_extra-1.4.so.2.1.3
[[email protected] nfs]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)启动nfs后会多出这两行
nfsd on /proc/fs/nfsd type nfsd (rw)