首页 > 代码库 > 命令拷屏
命令拷屏
[root@localhost ~]# 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
[root@localhost network-scripts]# ps -ef|grep rpc
root 3082 2368 0 17:54 pts/1 00:00:00 grep rpc
[root@localhost ~]# rpm -ql libgssglue
/etc/gssapi_mech.conf
/lib64/libgssglue.so.1
/lib64/libgssglue.so.1.0.0
[root@localhost ~]# rpm -ql libtirpc
/etc/netconfig
/lib64/libtirpc.so.1
/lib64/libtirpc.so.1.0.10
[root@localhost ~]# rpm -ql rpcbind
/etc/rc.d/init.d/rpcbind
/sbin/rpcbind
/usr/sbin/rpcinfo
/var/cache/rpcbind
[root@localhost ~]# service rpcbind start
Starting rpcbind: [ OK ]
[root@localhost ~]# 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
[root@localhost ~]# rpcbind start
[root@localhost ~]# 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
[root@localhost ~]# rpcbind -a
-a (abort) specified without -d (debugging) -- ignored.
rpcbind: another rpcbind is already running. Aborting
[root@localhost ~]# rpcbind -i
rpcbind: another rpcbind is already running. Aborting
[root@localhost ~]# rpcbind -s
rpcbind: another rpcbind is already running. Aborting
[root@localhost ~]# rpcbind -w
rpcbind: another rpcbind is already running. Aborting
[root@localhost ~]# cd /proc/1174/fd
[root@localhost fd]# ls
0 1 10 11 2 3 4 5 6 7 8 9
[root@localhost 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]
[root@localhost 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
[root@localhost 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 *:*
[root@localhost fd]# cd /var/cache/
[root@localhost cache]# ls
ldconfig rpcbind yum
[root@localhost cache]# cd rpcbind/
[root@localhost 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
[root@localhost rpcbind]# file *
portmap.xdr: data
rpcbind.xdr: data
[root@localhost 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
[root@localhost 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
[root@localhost 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
[root@localhost rpcbind]# rpm -ql keyutils
/bin/keyctl
/etc/request-key.conf
/etc/request-key.d
/sbin/request-key
[root@localhost 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
[root@localhost 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)
命令拷屏