您的位置:首页 > 其它

NFS服务器基础配置方法

2016-11-26 16:24 447 查看
1.1安装nfs服务
(1)yum -y install nfs
[root@it65 ~]# yum -y install nfs*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:05
extras | 3.4 kB 00:00
rhel6-source | 4.0 kB 00:00 ...
updates | 3.4 kB 00:00
updates/primary_db | 3.7 MB 00:03
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-ganesha.x86_64 0:2.3.2-1.el6 will be installed
--> Processing Dependency: rpcbind for package: nfs-ganesha-2.3.2-1.el6.x86_64
--> Processing Dependency: libntirpc.so.1.3(NTIRPC_1.3.1)(64bit) for package: nfs-ganesha-2.3.2-1.el6.x86_64
--> Processing Dependency: libntirpc.so.1.3()(64bit) for package: nfs-ganesha-2.3.2-1.el6.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: nfs-ganesha-2.3.2-1.el6.x86_64
---> Package nfs-ganesha-mount-9P.x86_64 0:2.3.2-1.el6 will be installed
---> Package nfs-ganesha-nullfs.x86_64 0:2.3.2-1.el6 will be installed
---> Package nfs-ganesha-proxy.x86_64 0:2.3.2-1.el6 will be installed
---> Package nfs-ganesha-utils.x86_64 0:2.3.2-1.el6 will be installed
--> Processing Dependency: PyQt4 for package: nfs-ganesha-utils-2.3.2-1.el6.x86_64
---> Package nfs-ganesha-vfs.x86_64 0:2.3.2-1.el6 will be installed
---> Package nfs-utils.x86_64 1:1.2.3-70.el6_8.2 will be installed
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: python-argparse for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
---> Package nfs-utils-lib.x86_64 0:1.1.5-11.el6 will be installed
---> Package nfs-utils-lib-devel.x86_64 0:1.1.5-11.el6 will be installed
--> Processing Dependency: pkgconfig(libgssglue) for package: nfs-utils-lib-devel-1.1.5-11.el6.x86_64
---> Package nfs4-acl-tools.x86_64 0:0.3.3-8.el6 will be installed
---> Package nfsometer.noarch 0:1.6-1.el6 will be installed
--> Processing Dependency: python-matplotlib for package: nfsometer-1.6-1.el6.noarch
--> Processing Dependency: python-mako for package: nfsometer-1.6-1.el6.noarch
--> Processing Dependency: numpy for package: nfsometer-1.6-1.el6.noarch
--> Processing Dependency: filebench for package: nfsometer-1.6-1.el6.noarch
--> Running transaction check
---> Package PyQt4.x86_64 0:4.6.2-9.el6 will be installed
--> Processing Dependency: sip-api(6) >= 6.0 for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: qt4 >= 4.6.2 for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libphonon.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtXmlPatterns.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtXml.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtTest.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtSvg.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtSql.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtScriptTools.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtScript.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtOpenGL.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtNetwork.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtHelp.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtGui.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtDesigner.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtCore.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libQtAssistantClient.so.4()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libGLU.so.1()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
--> Processing Dependency: libGL.so.1()(64bit) for package: PyQt4-4.6.2-9.el6.x86_64
---> Package filebench.x86_64 0:1.4.9.1-1.el6 will be installed
---> Package jemalloc.x86_64 0:3.6.0-1.el6 will be installed
---> Package keyutils.x86_64 0:1.4-5.el6 will be installed
--> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-1.4-5.el6.x86_64
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libgssglue-devel.x86_64 0:0.1-11.el6 will be installed
---> Package libntirpc.x86_64 0:1.3.1-1.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-11.el6_8 will be installed
---> Package numpy.x86_64 0:1.4.1-9.el6 will be installed
--> Processing Dependency: python-nose for package: numpy-1.4.1-9.el6.x86_64
--> Processing Dependency: libptf77blas.so.3()(64bit) for package: numpy-1.4.1-9.el6.x86_64
--> Processing Dependency: libptcblas.so.3()(64bit) for package: numpy-1.4.1-9.el6.x86_64
--> Processing Dependency: liblapack.so.3()(64bit) for package: numpy-1.4.1-9.el6.x86_64
--> Processing Dependency: libatlas.so.3()(64bit) for package: numpy-1.4.1-9.el6.x86_64
---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed
---> Package python-mako.noarch 0:0.3.4-1.el6 will be installed
--> Processing Dependency: python-markupsafe for package: python-mako-0.3.4-1.el6.noarch
--> Processing Dependency: python-beaker for package: python-mako-0.3.4-1.el6.noarch
---> Package python-matplotlib.x86_64 0:0.99.1.2-1.el6 will be installed
--> Processing Dependency: pytz for package: python-matplotlib-0.99.1.2-1.el6.x86_64
--> Processing Dependency: python-dateutil for package: python-matplotlib-0.99.1.2-1.el6.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: python-matplotlib-0.99.1.2-1.el6.x86_64
---> Package rpcbind.x86_64 0:0.2.0-12.el6 will be installed
--> Running transaction check
---> Package atlas.x86_64 0:3.8.4-2.el6 will be installed
---> Package dejavu-sans-fonts.noarch 0:2.33-1.el6 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-1.el6 for package: dejavu-sans-fonts-2.33-1.el6.noarch
---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated
--> Processing Dependency: keyutils-libs = 1.4-4.el6 for package: keyutils-libs-devel-1.4-4.el6.x86_64
---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update
---> Package mesa-libGL.x86_64 0:11.0.7-4.el6 will be installed
--> Processing Dependency: mesa-dri-drivers(x86-64) = 11.0.7-4.el6 for package: mesa-libGL-11.0.7-4.el6.x86_64
--> Processing Dependency: libX11 > 1.6 for package: mesa-libGL-11.0.7-4.el6.x86_64
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libGL-11.0.7-4.el6.x86_64
---> Package mesa-libGLU.x86_64 0:11.0.7-4.el6 will be installed
---> Package python-beaker.noarch 0:1.3.1-7.el6 will be installed
---> Package python-dateutil.noarch 0:1.4.1-6.el6 will be installed
---> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
---> Package python-nose.noarch 0:0.10.4-3.1.el6 will be installed
--> Processing Dependency: python-setuptools for package: python-nose-0.10.4-3.1.el6.noarch
---> Package pytz.noarch 0:2010h-2.el6 will be installed
---> Package qt.x86_64 1:4.6.2-28.el6_5 will be installed
---> Package qt-x11.x86_64 1:4.6.2-28.el6_5 will be installed
--> Processing Dependency: qt-sqlite(x86-64) = 1:4.6.2-28.el6_5 for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: phonon-backend(x86-64) >= 4.3 for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: libgstvideo-0.10.so.0()(64bit) for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
--> Processing Dependency: libgstinterfaces-0.10.so.0()(64bit) for package: 1:qt-x11-4.6.2-28.el6_5.x86_64
---> Package sip.x86_64 0:4.9.3-1.el6 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-1.el6 will be installed
---> Package gstreamer-plugins-base.x86_64 0:0.10.29-2.el6 will be installed
--> Processing Dependency: liboil >= 0.3.12-9 for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libtheoraenc.so.1(libtheoraenc_1.0)(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libtheoradec.so.1(libtheoradec_1.0)(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libvisual-0.4.so.0()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libtheoraenc.so.1()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libtheoradec.so.1()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: liboil-0.3.so.0()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libgudev-1.0.so.0()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libcdda_paranoia.so.0()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libcdda_interface.so.0()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
--> Processing Dependency: libXv.so.1()(64bit) for package: gstreamer-plugins-base-0.10.29-2.el6.x86_64
---> Package keyutils-libs-devel.x86_64 0:1.4-4.el6 will be updated
---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be an update
---> Package libX11.x86_64 0:1.5.0-4.el6 will be updated
---> Package libX11.x86_64 0:1.6.3-2.el6 will be an update
--> Processing Dependency: libX11-common = 1.6.3-2.el6 for package: libX11-1.6.3-2.el6.x86_64
---> Package libmng.x86_64 0:1.0.10-4.1.el6 will be installed
--> Processing Dependency: liblcms.so.1()(64bit) for package: libmng-1.0.10-4.1.el6.x86_64
---> Package mesa-dri-drivers.x86_64 0:11.0.7-4.el6 will be installed
--> Processing Dependency: mesa-dri1-drivers >= 7.11-6 for package: mesa-dri-drivers-11.0.7-4.el6.x86_64
--> Processing Dependency: mesa-dri-filesystem(x86-64) for package: mesa-dri-drivers-11.0.7-4.el6.x86_64
--> Processing Dependency: libLLVM-3.6-mesa.so(libLLVM-3.6-mesa.so)(64bit) for package: mesa-dri-drivers-11.0.7-4.el6.x86_64
--> Processing Dependency: libdrm_amdgpu.so.1()(64bit) for package: mesa-dri-drivers-11.0.7-4.el6.x86_64
--> Processing Dependency: libLLVM-3.6-mesa.so()(64bit) for package: mesa-dri-drivers-11.0.7-4.el6.x86_64
---> Package phonon-backend-gstreamer.x86_64 1:4.6.2-28.el6_5 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package qt-sqlite.x86_64 1:4.6.2-28.el6_5 will be installed
--> Running transaction check
---> Package cdparanoia-libs.x86_64 0:10.2-5.1.el6 will be installed
---> Package lcms-libs.x86_64 0:1.19-1.el6 will be installed
---> Package libX11-common.noarch 0:1.5.0-4.el6 will be updated
---> Package libX11-common.noarch 0:1.6.3-2.el6 will be an update
---> Package libXv.x86_64 0:1.0.9-2.1.el6 will be installed
---> Package libdrm.x86_64 0:2.4.45-2.el6 will be updated
---> Package libdrm.x86_64 0:2.4.65-2.el6 will be an update
---> Package libgudev1.x86_64 0:147-2.73.el6_8.2 will be installed
--> Processing Dependency: libudev = 147-2.73.el6_8.2 for package: libgudev1-147-2.73.el6_8.2.x86_64
---> Package liboil.x86_64 0:0.3.16-4.1.el6 will be installed
---> Package libtheora.x86_64 1:1.1.0-2.el6 will be installed
---> Package libvisual.x86_64 0:0.4.0-10.el6 will be installed
---> Package mesa-dri-filesystem.x86_64 0:11.0.7-4.el6 will be installed
---> Package mesa-dri1-drivers.x86_64 0:7.11-8.el6 will be installed
---> Package mesa-private-llvm.x86_64 0:3.6.2-1.el6 will be installed
--> Running transaction check
---> Package libudev.x86_64 0:147-2.51.el6 will be updated
---> Package libudev.x86_64 0:147-2.73.el6_8.2 will be an update
--> Processing Conflict: libX11-1.6.3-2.el6.x86_64 conflicts libxcb < 1.9.1-3
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package libxcb.x86_64 0:1.8.1-1.el6 will be updated
---> Package libxcb.x86_64 0:1.11-2.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================
Package Arch Version Repository
Size
=================================================================
Installing:
nfs-ganesha x86_64 2.3.2-1.el6 epel 498 k
nfs-ganesha-mount-9P x86_64 2.3.2-1.el6 epel 11 k
nfs-ganesha-nullfs x86_64 2.3.2-1.el6 epel 17 k
nfs-ganesha-proxy x86_64 2.3.2-1.el6 epel 39 k
nfs-ganesha-utils x86_64 2.3.2-1.el6 epel 52 k
nfs-ganesha-vfs x86_64 2.3.2-1.el6 epel 38 k
nfs-utils x86_64 1:1.2.3-70.el6_8.2 updates 335 k
nfs-utils-lib x86_64 1.1.5-11.el6 base 68 k
nfs-utils-lib-devel x86_64 1.1.5-11.el6 base 68 k
nfs4-acl-tools x86_64 0.3.3-8.el6 base 43 k
nfsometer noarch 1.6-1.el6 epel 133 k
Updating:
libxcb x86_64 1.11-2.el6 base 142 k
Installing for dependencies:
PyQt4 x86_64 4.6.2-9.el6 base 2.3 M
atlas x86_64 3.8.4-2.el6 base 2.8 M
cdparanoia-libs x86_64 10.2-5.1.el6 base 47 k
dejavu-fonts-common noarch 2.33-1.el6 base 63 k
dejavu-sans-fonts noarch 2.33-1.el6 base 2.2 M
filebench x86_64 1.4.9.1-1.el6 epel 111 k
gstreamer-plugins-base x86_64 0.10.29-2.el6 base 940 k
jemalloc x86_64 3.6.0-1.el6 epel 100 k
keyutils x86_64 1.4-5.el6 base 39 k
lcms-libs x86_64 1.19-1.el6 base 100 k
libXv x86_64 1.0.9-2.1.el6 base 16 k
libevent x86_64 1.4.13-4.el6 base 66 k
libgssglue x86_64 0.1-11.el6 base 23 k
libgssglue-devel x86_64 0.1-11.el6 base 11 k
libgudev1 x86_64 147-2.73.el6_8.2 updates 65 k
libmng x86_64 1.0.10-4.1.el6 base 165 k
libntirpc x86_64 1.3.1-1.el6 epel 113 k
liboil x86_64 0.3.16-4.1.el6 base 121 k
libtheora x86_64 1:1.1.0-2.el6 base 129 k
libtirpc x86_64 0.2.1-11.el6_8 updates 82 k
libvisual x86_64 0.4.0-10.el6 base 135 k
mesa-dri-drivers x86_64 11.0.7-4.el6 base 4.1 M
mesa-dri-filesystem x86_64 11.0.7-4.el6 base 17 k
mesa-dri1-drivers x86_64 7.11-8.el6 base 3.8 M
mesa-libGL x86_64 11.0.7-4.el6 base 142 k
mesa-libGLU x86_64 11.0.7-4.el6 base 198 k
mesa-private-llvm x86_64 3.6.2-1.el6 base 6.5 M
numpy x86_64 1.4.1-9.el6 base 2.3 M
phonon-backend-gstreamer
x86_64 1:4.6.2-28.el6_5 base 127 k
python-argparse noarch 1.2.1-2.1.el6 base 48 k
python-beaker noarch 1.3.1-7.el6 base 72 k
python-dateutil noarch 1.4.1-6.el6 base 84 k
python-mako noarch 0.3.4-1.el6 base 223 k
python-markupsafe x86_64 0.9.2-4.el6 base 22 k
python-matplotlib x86_64 0.99.1.2-1.el6 base 3.2 M
python-nose noarch 0.10.4-3.1.el6 base 220 k
python-setuptools noarch 0.6.10-3.el6 base 336 k
pytz noarch 2010h-2.el6 base 35 k
qt x86_64 1:4.6.2-28.el6_5 base 3.9 M
qt-sqlite x86_64 1:4.6.2-28.el6_5 base 51 k
qt-x11 x86_64 1:4.6.2-28.el6_5 base 12 M
rpcbind x86_64 0.2.0-12.el6 base 51 k
sip x86_64 4.9.3-1.el6 base 148 k
Updating for dependencies:
keyutils-libs x86_64 1.4-5.el6 base 20 k
keyutils-libs-devel x86_64 1.4-5.el6 base 29 k
libX11 x86_64 1.6.3-2.el6 base 586 k
libX11-common noarch 1.6.3-2.el6 base 169 k
libdrm x86_64 2.4.65-2.el6 base 136 k
libudev x86_64 147-2.73.el6_8.2 updates 78 k

Transaction Summary
=================================================================
Install 54 Package(s)
Upgrade 7 Package(s)

Total download size: 50 M
Downloading Packages:
(1/61): PyQt4-4.6.2-9.el6.x86_64.rpm | 2.3 MB 00:02
(2/61): atlas-3.8.4-2.el6.x86_64.rpm | 2.8 MB 00:02
(3/61): cdparanoia-libs-10.2-5.1.el6.x86_ | 47 kB 00:00
(4/61): dejavu-fonts-common-2.33-1.el6.no | 63 kB 00:00
(5/61): dejavu-sans-fonts-2.33-1.el6.noar | 2.2 MB 00:02
(6/61): filebench-1.4.9.1-1.el6.x86_64.rp | 111 kB 00:00
(7/61): gstreamer-plugins-base-0.10.29-2. | 940 kB 00:00
(8/61): jemalloc-3.6.0-1.el6.x86_64.rpm | 100 kB 00:00
(9/61): keyutils-1.4-5.el6.x86_64.rpm | 39 kB 00:00
(10/61): keyutils-libs-1.4-5.el6.x86_64.r | 20 kB 00:00
(11/61): keyutils-libs-devel-1.4-5.el6.x8 | 29 kB 00:00
(12/61): lcms-libs-1.19-1.el6.x86_64.rpm | 100 kB 00:00
(13/61): libX11-1.6.3-2.el6.x86_64.rpm | 586 kB 00:00
(14/61): libX11-common-1.6.3-2.el6.noarch | 169 kB 00:00
(15/61): libXv-1.0.9-2.1.el6.x86_64.rpm | 16 kB 00:00
(16/61): libdrm-2.4.65-2.el6.x86_64.rpm | 136 kB 00:00
(17/61): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00
(18/61): libgssglue-0.1-11.el6.x86_64.rpm | 23 kB 00:00
(19/61): libgssglue-devel-0.1-11.el6.x86_ | 11 kB 00:00
(20/61): libgudev1-147-2.73.el6_8.2.x86_6 | 65 kB 00:00
(21/61): libmng-1.0.10-4.1.el6.x86_64.rpm | 165 kB 00:00
(22/61): libntirpc-1.3.1-1.el6.x86_64.rpm | 113 kB 00:00
(23/61): liboil-0.3.16-4.1.el6.x86_64.rpm | 121 kB 00:00
(24/61): libtheora-1.1.0-2.el6.x86_64.rpm | 129 kB 00:00
(25/61): libtirpc-0.2.1-11.el6_8.x86_64.r | 82 kB 00:00
(26/61): libudev-147-2.73.el6_8.2.x86_64. | 78 kB 00:00
(27/61): libvisual-0.4.0-10.el6.x86_64.rp | 135 kB 00:00
(28/61): libxcb-1.11-2.el6.x86_64.rpm | 142 kB 00:00
(29/61): mesa-dri-drivers-11.0.7-4.el6.x8 | 4.1 MB 00:04
(30/61): mesa-dri-filesystem-11.0.7-4.el6 | 17 kB 00:00
(31/61): mesa-dri1-drivers-7.11-8.el6.x86 | 3.8 MB 00:03
(32/61): mesa-libGL-11.0.7-4.el6.x86_64.r | 142 kB 00:00
(33/61): mesa-libGLU-11.0.7-4.el6.x86_64. | 198 kB 00:00
(34/61): mesa-private-llvm-3.6.2-1.el6.x8 | 6.5 MB 00:06
(35/61): nfs-ganesha-2.3.2-1.el6.x86_64.r | 498 kB 00:00
(36/61): nfs-ganesha-mount-9P-2.3.2-1.el6 | 11 kB 00:00
(37/61): nfs-ganesha-nullfs-2.3.2-1.el6.x | 17 kB 00:00
(38/61): nfs-ganesha-proxy-2.3.2-1.el6.x8 | 39 kB 00:00
(39/61): nfs-ganesha-utils-2.3.2-1.el6.x8 | 52 kB 00:00
(40/61): nfs-ganesha-vfs-2.3.2-1.el6.x86_ | 38 kB 00:00
(41/61): nfs-utils-1.2.3-70.el6_8.2.x86_6 | 335 kB 00:00
(42/61): nfs-utils-lib-1.1.5-11.el6.x86_6 | 68 kB 00:00
(43/61): nfs-utils-lib-devel-1.1.5-11.el6 | 68 kB 00:00
(44/61): nfs4-acl-tools-0.3.3-8.el6.x86_6 | 43 kB 00:00
(45/61): nfsometer-1.6-1.el6.noarch.rpm | 133 kB 00:00
(46/61): numpy-1.4.1-9.el6.x86_64.rpm | 2.3 MB 00:02
(47/61): phonon-backend-gstreamer-4.6.2-2 | 127 kB 00:00
(48/61): python-argparse-1.2.1-2.1.el6.no | 48 kB 00:00
(49/61): python-beaker-1.3.1-7.el6.noarch | 72 kB 00:00
(50/61): python-dateutil-1.4.1-6.el6.noar | 84 kB 00:00
(51/61): python-mako-0.3.4-1.el6.noarch.r | 223 kB 00:00
(52/61): python-markupsafe-0.9.2-4.el6.x8 | 22 kB 00:00
(53/61): python-matplotlib-0.99.1.2-1.el6 | 3.2 MB 00:02
(54/61): python-nose-0.10.4-3.1.el6.noarc | 220 kB 00:00
(55/61): python-setuptools-0.6.10-3.el6.n | 336 kB 00:00
(56/61): pytz-2010h-2.el6.noarch.rpm | 35 kB 00:00
(57/61): qt-4.6.2-28.el6_5.x86_64.rpm | 3.9 MB 00:03
(58/61): qt-sqlite-4.6.2-28.el6_5.x86_64. | 51 kB 00:00
(59/61): qt-x11-4.6.2-28.el6_5.x86_64.rpm | 12 MB 00:12
(60/61): rpcbind-0.2.0-12.el6.x86_64.rpm | 51 kB 00:00
(61/61): sip-4.9.3-1.el6.x86_64.rpm | 148 kB 00:00
-----------------------------------------------------------------
Total 996 kB/s | 50 MB 00:50
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
From : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6 Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgssglue-0.1-11.el6.x86_64 1/68
Installing : 1:qt-4.6.2-28.el6_5.x86_64 2/68
Installing : jemalloc-3.6.0-1.el6.x86_64 3/68
Installing : libntirpc-1.3.1-1.el6.x86_64 4/68
Updating : libdrm-2.4.65-2.el6.x86_64 5/68
Updating : keyutils-libs-1.4-5.el6.x86_64 6/68
Installing : libtirpc-0.2.1-11.el6_8.x86_64 7/68
Installing : rpcbind-0.2.0-12.el6.x86_64 8/68
Updating : libxcb-1.11-2.el6.x86_64 9/68
Installing : mesa-dri-filesystem-11.0.7-4.el6.x86_64 10/68
Installing : keyutils-1.4-5.el6.x86_64 11/68
Installing : 1:qt-sqlite-4.6.2-28.el6_5.x86_64 12/68
Installing : libgssglue-devel-0.1-11.el6.x86_64 13/68
Updating : libX11-common-1.6.3-2.el6.noarch 14/68
Updating : libX11-1.6.3-2.el6.x86_64 15/68
Installing : libXv-1.0.9-2.1.el6.x86_64 16/68
Installing : 1:libtheora-1.1.0-2.el6.x86_64 17/68
Installing : libvisual-0.4.0-10.el6.x86_64 18/68
Installing : python-dateutil-1.4.1-6.el6.noarch 19/68
Installing : liboil-0.3.16-4.1.el6.x86_64 20/68
Installing : mesa-private-llvm-3.6.2-1.el6.x86_64 21/68
Installing : mesa-dri1-drivers-7.11-8.el6.x86_64 22/68
Installing : mesa-dri-drivers-11.0.7-4.el6.x86_64 23/68
Installing : mesa-libGL-11.0.7-4.el6.x86_64 24/68
Installing : mesa-libGLU-11.0.7-4.el6.x86_64 25/68
Installing : cdparanoia-libs-10.2-5.1.el6.x86_64 26/68
Installing : python-argparse-1.2.1-2.1.el6.noarch 27/68
Installing : dejavu-fonts-common-2.33-1.el6.noarch 28/68
Installing : dejavu-sans-fonts-2.33-1.el6.noarch 29/68
Installing : python-setuptools-0.6.10-3.el6.noarch 30/68
Installing : python-nose-0.10.4-3.1.el6.noarch 31/68
Installing : sip-4.9.3-1.el6.x86_64 32/68
Installing : python-beaker-1.3.1-7.el6.noarch 33/68
Installing : python-markupsafe-0.9.2-4.el6.x86_64 34/68
Installing : python-mako-0.3.4-1.el6.noarch 35/68
Installing : lcms-libs-1.19-1.el6.x86_64 36/68
Installing : libmng-1.0.10-4.1.el6.x86_64 37/68
Installing : pytz-2010h-2.el6.noarch 38/68
Installing : atlas-3.8.4-2.el6.x86_64 39/68
Installing : numpy-1.4.1-9.el6.x86_64 40/68
Installing : python-matplotlib-0.99.1.2-1.el6.x86_64 41/68
Updating : libudev-147-2.73.el6_8.2.x86_64 42/68
Installing : libgudev1-147-2.73.el6_8.2.x86_64 43/68
Installing : gstreamer-plugins-base-0.10.29-2.el6.x86_ 44/68
Installing : 1:qt-x11-4.6.2-28.el6_5.x86_64 45/68
Installing : 1:phonon-backend-gstreamer-4.6.2-28.el6_5 46/68
Installing : PyQt4-4.6.2-9.el6.x86_64 47/68
Installing : filebench-1.4.9.1-1.el6.x86_64 48/68
Installing : libevent-1.4.13-4.el6.x86_64 49/68
Installing : nfs-utils-lib-1.1.5-11.el6.x86_64 50/68
Installing : 1:nfs-utils-1.2.3-70.el6_8.2.x86_64 51/68
Installing : nfs-ganesha-2.3.2-1.el6.x86_64 52/68
Installing : nfs-ganesha-vfs-2.3.2-1.el6.x86_64 53/68
Installing : nfs-ganesha-utils-2.3.2-1.el6.x86_64 54/68
Installing : nfs-ganesha-nullfs-2.3.2-1.el6.x86_64 55/68
Installing : nfs-ganesha-proxy-2.3.2-1.el6.x86_64 56/68
Installing : nfsometer-1.6-1.el6.noarch 57/68
Installing : nfs-utils-lib-devel-1.1.5-11.el6.x86_64 58/68
Updating : keyutils-libs-devel-1.4-5.el6.x86_64 59/68
Installing : nfs4-acl-tools-0.3.3-8.el6.x86_64 60/68
Installing : nfs-ganesha-mount-9P-2.3.2-1.el6.x86_64 61/68
Cleanup : keyutils-libs-devel-1.4-4.el6.x86_64 62/68
Cleanup : libX11-1.5.0-4.el6.x86_64 63/68
Cleanup : libX11-common-1.5.0-4.el6.noarch 64/68
Cleanup : libxcb-1.8.1-1.el6.x86_64 65/68
Cleanup : keyutils-libs-1.4-4.el6.x86_64 66/68
Cleanup : libdrm-2.4.45-2.el6.x86_64 67/68
Cleanup : libudev-147-2.51.el6.x86_64 68/68
Verifying : nfs-ganesha-vfs-2.3.2-1.el6.x86_64 1/68
Verifying : libevent-1.4.13-4.el6.x86_64 2/68
Verifying : mesa-libGLU-11.0.7-4.el6.x86_64 3/68
Verifying : libgudev1-147-2.73.el6_8.2.x86_64 4/68
Verifying : nfs-ganesha-mount-9P-2.3.2-1.el6.x86_64 5/68
Verifying : libntirpc-1.3.1-1.el6.x86_64 6/68
Verifying : libgssglue-devel-0.1-11.el6.x86_64 7/68
Verifying : numpy-1.4.1-9.el6.x86_64 8/68
Verifying : nfs-ganesha-utils-2.3.2-1.el6.x86_64 9/68
Verifying : mesa-dri-filesystem-11.0.7-4.el6.x86_64 10/68
Verifying : 1:nfs-utils-1.2.3-70.el6_8.2.x86_64 11/68
Verifying : filebench-1.4.9.1-1.el6.x86_64 12/68
Verifying : 1:qt-x11-4.6.2-28.el6_5.x86_64 13/68
Verifying : libudev-147-2.73.el6_8.2.x86_64 14/68
Verifying : dejavu-sans-fonts-2.33-1.el6.noarch 15/68
Verifying : mesa-dri1-drivers-7.11-8.el6.x86_64 16/68
Verifying : nfs-ganesha-2.3.2-1.el6.x86_64 17/68
Verifying : atlas-3.8.4-2.el6.x86_64 18/68
Verifying : pytz-2010h-2.el6.noarch 19/68
Verifying : python-matplotlib-0.99.1.2-1.el6.x86_64 20/68
Verifying : nfs-ganesha-nullfs-2.3.2-1.el6.x86_64 21/68
Verifying : rpcbind-0.2.0-12.el6.x86_64 22/68
Verifying : nfs-utils-lib-1.1.5-11.el6.x86_64 23/68
Verifying : lcms-libs-1.19-1.el6.x86_64 24/68
Verifying : python-mako-0.3.4-1.el6.noarch 25/68
Verifying : jemalloc-3.6.0-1.el6.x86_64 26/68
Verifying : python-markupsafe-0.9.2-4.el6.x86_64 27/68
Verifying : python-nose-0.10.4-3.1.el6.noarch 28/68
Verifying : python-beaker-1.3.1-7.el6.noarch 29/68
Verifying : 1:qt-4.6.2-28.el6_5.x86_64 30/68
Verifying : keyutils-libs-1.4-5.el6.x86_64 31/68
Verifying : sip-4.9.3-1.el6.x86_64 32/68
Verifying : keyutils-1.4-5.el6.x86_64 33/68
Verifying : mesa-libGL-11.0.7-4.el6.x86_64 34/68
Verifying : nfs-ganesha-proxy-2.3.2-1.el6.x86_64 35/68
Verifying : nfsometer-1.6-1.el6.noarch 36/68
Verifying : libxcb-1.11-2.el6.x86_64 37/68
Verifying : PyQt4-4.6.2-9.el6.x86_64 38/68
Verifying : 1:qt-sqlite-4.6.2-28.el6_5.x86_64 39/68
Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 40/68
Verifying : nfs4-acl-tools-0.3.3-8.el6.x86_64 41/68
Verifying : nfs-utils-lib-devel-1.1.5-11.el6.x86_64 42/68
Verifying : libtirpc-0.2.1-11.el6_8.x86_64 43/68
Verifying : python-setuptools-0.6.10-3.el6.noarch 44/68
Verifying : dejavu-fonts-common-2.33-1.el6.noarch 45/68
Verifying : python-argparse-1.2.1-2.1.el6.noarch 46/68
Verifying : cdparanoia-libs-10.2-5.1.el6.x86_64 47/68
Verifying : mesa-private-llvm-3.6.2-1.el6.x86_64 48/68
Verifying : libdrm-2.4.65-2.el6.x86_64 49/68
Verifying : liboil-0.3.16-4.1.el6.x86_64 50/68
Verifying : python-dateutil-1.4.1-6.el6.noarch 51/68
Verifying : libvisual-0.4.0-10.el6.x86_64 52/68
Verifying : 1:libtheora-1.1.0-2.el6.x86_64 53/68
Verifying : libXv-1.0.9-2.1.el6.x86_64 54/68
Verifying : 1:phonon-backend-gstreamer-4.6.2-28.el6_5 55/68
Verifying : libX11-1.6.3-2.el6.x86_64 56/68
Verifying : mesa-dri-drivers-11.0.7-4.el6.x86_64 57/68
Verifying : libgssglue-0.1-11.el6.x86_64 58/68
Verifying : libX11-common-1.6.3-2.el6.noarch 59/68
Verifying : gstreamer-plugins-base-0.10.29-2.el6.x86_ 60/68
Verifying : libmng-1.0.10-4.1.el6.x86_64 61/68
Verifying : libxcb-1.8.1-1.el6.x86_64 62/68
Verifying : libX11-1.5.0-4.el6.x86_64 63/68
Verifying : libdrm-2.4.45-2.el6.x86_64 64/68
Verifying : libX11-common-1.5.0-4.el6.noarch 65/68
Verifying : libudev-147-2.51.el6.x86_64 66/68
Verifying : keyutils-libs-devel-1.4-4.el6.x86_64 67/68
Verifying : keyutils-libs-1.4-4.el6.x86_64 68/68

Installed:
nfs-ganesha.x86_64 0:2.3.2-1.el6
nfs-ganesha-mount-9P.x86_64 0:2.3.2-1.el6
nfs-ganesha-nullfs.x86_64 0:2.3.2-1.el6
nfs-ganesha-proxy.x86_64 0:2.3.2-1.el6
nfs-ganesha-utils.x86_64 0:2.3.2-1.el6
nfs-ganesha-vfs.x86_64 0:2.3.2-1.el6
nfs-utils.x86_64 1:1.2.3-70.el6_8.2
nfs-utils-lib.x86_64 0:1.1.5-11.el6
nfs-utils-lib-devel.x86_64 0:1.1.5-11.el6
nfs4-acl-tools.x86_64 0:0.3.3-8.el6
nfsometer.noarch 0:1.6-1.el6

Dependency Installed:
PyQt4.x86_64 0:4.6.2-9.el6
atlas.x86_64 0:3.8.4-2.el6
cdparanoia-libs.x86_64 0:10.2-5.1.el6
dejavu-fonts-common.noarch 0:2.33-1.el6
dejavu-sans-fonts.noarch 0:2.33-1.el6
filebench.x86_64 0:1.4.9.1-1.el6
gstreamer-plugins-base.x86_64 0:0.10.29-2.el6
jemalloc.x86_64 0:3.6.0-1.el6
keyutils.x86_64 0:1.4-5.el6
lcms-libs.x86_64 0:1.19-1.el6
libXv.x86_64 0:1.0.9-2.1.el6
libevent.x86_64 0:1.4.13-4.el6
libgssglue.x86_64 0:0.1-11.el6
libgssglue-devel.x86_64 0:0.1-11.el6
libgudev1.x86_64 0:147-2.73.el6_8.2
libmng.x86_64 0:1.0.10-4.1.el6
libntirpc.x86_64 0:1.3.1-1.el6
liboil.x86_64 0:0.3.16-4.1.el6
libtheora.x86_64 1:1.1.0-2.el6
libtirpc.x86_64 0:0.2.1-11.el6_8
libvisual.x86_64 0:0.4.0-10.el6
mesa-dri-drivers.x86_64 0:11.0.7-4.el6
mesa-dri-filesystem.x86_64 0:11.0.7-4.el6
mesa-dri1-drivers.x86_64 0:7.11-8.el6
mesa-libGL.x86_64 0:11.0.7-4.el6
mesa-libGLU.x86_64 0:11.0.7-4.el6
mesa-private-llvm.x86_64 0:3.6.2-1.el6
numpy.x86_64 0:1.4.1-9.el6
phonon-backend-gstreamer.x86_64 1:4.6.2-28.el6_5
python-argparse.noarch 0:1.2.1-2.1.el6
python-beaker.noarch 0:1.3.1-7.el6
python-dateutil.noarch 0:1.4.1-6.el6
python-mako.noarch 0:0.3.4-1.el6
python-markupsafe.x86_64 0:0.9.2-4.el6
python-matplotlib.x86_64 0:0.99.1.2-1.el6
python-nose.noarch 0:0.10.4-3.1.el6
python-setuptools.noarch 0:0.6.10-3.el6
pytz.noarch 0:2010h-2.el6
qt.x86_64 1:4.6.2-28.el6_5
qt-sqlite.x86_64 1:4.6.2-28.el6_5
qt-x11.x86_64 1:4.6.2-28.el6_5
rpcbind.x86_64 0:0.2.0-12.el6
sip.x86_64 0:4.9.3-1.el6

Updated:
libxcb.x86_64 0:1.11-2.el6

Dependency Updated:
keyutils-libs.x86_64 0:1.4-5.el6
keyutils-libs-devel.x86_64 0:1.4-5.el6
libX11.x86_64 0:1.6.3-2.el6
libX11-common.noarch 0:1.6.3-2.el6
libdrm.x86_64 0:2.4.65-2.el6
libudev.x86_64 0:147-2.73.el6_8.2

Complete
!
1.2修改配置文件/etc/exports
[root@it65 ~]# ls /etc/exports
/etc/exports
[root@it65 ~]# vim !$
vim /etc/exports
/tmp/a/no_root_squash *(rw,no_root_squash)
/tmp/a/roo_squash *(rw,root_squash)
/tmp/a/all_squash 192.168.0.0/24(rw,all_squash,anonuid=500,anongi
d=500)
~
~
~
~
~
"/etc/exports" 3L, 151C written
[root@it65 ~]#

1.3启动服务
/etc/init.d/nfs start
[root@it65 ~]# /etc/init.d/nfs start
Starting NFS services: exportfs: Failed to stat /tmp/a/all_squash: No such file or directory

exportfs: Failed to stat /tmp/a/roo_squash: No such file or directory

exportfs: Failed to stat /tmp/a/no_root_squash: No such file or directory

[ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS mountd: [FAILED]
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
[FAILED]

1.4启动服务rpcbind
[root@it65 ~]# /etc/init.d/rpcbind start
Starting rpcbind: [ OK ]
[root@it65 ~]#

1.5再次启动nfs服务
[root@it65 ~]# /etc/init.d/nfs restart
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [FAILED]
Shutting down NFS quotas: [FAILED]
Shutting down NFS services: [ OK ]
Starting NFS services: exportfs: Failed to stat /tmp/a/all_squash: No such file or directory

exportfs: Failed to stat /tmp/a/roo_squash: No such file or directory

exportfs: Failed to stat /tmp/a/no_root_squash: No such file or directory

[ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
Starting RPC idmapd: [ OK ]
[root@it65 ~]#

1.6创建相关文件共享目录
[root@it65 ~]# mkdir -p /tmp/a/all_squash /tmp/a/no_root_squash /tmp/a/root_squash
1.7启动服务nfs
[root@it65 ~]# /etc/init.d/nfs restart
Shutting down NFS daemon: [ OK ]
Shutting down NFS mountd: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Shutting down RPC idmapd: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
Starting RPC idmapd: [ OK ]
[root@it65 ~]#

1.8it66安装mount showmount

[root@it66 ~]# showmount -e 192.168.1.65
-bash: showmount: command not found
[root@it66 ~]# yum -y install mount
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:05
extras | 3.4 kB 00:00
rhel6-source | 4.0 kB 00:00 ...
updates | 3.4 kB 00:00
updates/primary_db | 3.7 MB 00:03
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package util-linux-ng.x86_64 0:2.17.2-12.14.el6 will be updated
---> Package util-linux-ng.x86_64 0:2.17.2-12.24.el6_8.1 will be an update
--> Processing Dependency: libuuid = 2.17.2-12.24.el6_8.1 for package: util-linux-ng-2.17.2-12.24.el6_8.1.x86_64
--> Processing Dependency: libblkid = 2.17.2-12.24.el6_8.1 for package: util-linux-ng-2.17.2-12.24.el6_8.1.x86_64
--> Processing Dependency: kernel >= 2.6.32-642 for package: util-linux-ng-2.17.2-12.24.el6_8.1.x86_64
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-642.11.1.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-642.11.1.el6 for package: kernel-2.6.32-642.11.1.el6.x86_64
--> Processing Dependency: dracut-kernel >= 004-408.el6 for package: kernel-2.6.32-642.11.1.el6.x86_64
---> Package libblkid.x86_64 0:2.17.2-12.14.el6 will be updated
---> Package libblkid.x86_64 0:2.17.2-12.24.el6_8.1 will be an update
---> Package libuuid.x86_64 0:2.17.2-12.14.el6 will be updated
---> Package libuuid.x86_64 0:2.17.2-12.24.el6_8.1 will be an update
--> Running transaction check
---> Package dracut-kernel.noarch 0:004-335.el6 will be updated
---> Package dracut-kernel.noarch 0:004-409.el6_8.2 will be an update
--> Processing Dependency: dracut = 004-409.el6_8.2 for package: dracut-kernel-004-409.el6_8.2.noarch
---> Package kernel-firmware.noarch 0:2.6.32-431.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-642.11.1.el6 will be an update
--> Running transaction check
---> Package dracut.noarch 0:004-335.el6 will be updated
---> Package dracut.noarch 0:004-409.el6_8.2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================
Package Arch Version Repository
Size
=================================================================
Updating:
util-linux-ng x86_64 2.17.2-12.24.el6_8.1 updates 1.6 M
Installing for dependencies:
kernel x86_64 2.6.32-642.11.1.el6 updates 32 M
Updating for dependencies:
dracut noarch 004-409.el6_8.2 updates 127 k
dracut-kernel noarch 004-409.el6_8.2 updates 28 k
kernel-firmware noarch 2.6.32-642.11.1.el6 updates 28 M
libblkid x86_64 2.17.2-12.24.el6_8.1 updates 118 k
libuuid x86_64 2.17.2-12.24.el6_8.1 updates 71 k

Transaction Summary
=================================================================
Install 1 Package(s)
Upgrade 6 Package(s)

Total download size: 62 M
Downloading Packages:
(1/7): dracut-004-409.el6_8.2.noarch.rpm | 127 kB 00:00
(2/7): dracut-kernel-004-409.el6_8.2.noar | 28 kB 00:00
(3/7): kernel-2.6.32-642.11.1.el6.x86_64. | 32 MB 00:31
(4/7): kernel-firmware-2.6.32-642.11.1.el | 28 MB 00:28
(5/7): libblkid-2.17.2-12.24.el6_8.1.x86_ | 118 kB 00:00
(6/7): libuuid-2.17.2-12.24.el6_8.1.x86_6 | 71 kB 00:00
(7/7): util-linux-ng-2.17.2-12.24.el6_8.1 | 1.6 MB 00:01
-----------------------------------------------------------------
Total 1.0 MB/s | 62 MB 01:02
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE:
Userid: "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>"
From : http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6 Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libuuid-2.17.2-12.24.el6_8.1.x86_64 1/13
Updating : libblkid-2.17.2-12.24.el6_8.1.x86_64 2/13
Updating : kernel-firmware-2.6.32-642.11.1.el6.noarc 3/13
Updating : util-linux-ng-2.17.2-12.24.el6_8.1.x86_64 4/13
Updating : dracut-004-409.el6_8.2.noarch 5/13
Updating : dracut-kernel-004-409.el6_8.2.noarch 6/13
Installing : kernel-2.6.32-642.11.1.el6.x86_64 7/13
Cleanup : dracut-kernel-004-335.el6.noarch 8/13
Cleanup : dracut-004-335.el6.noarch 9/13
Cleanup : kernel-firmware-2.6.32-431.el6.noarch 10/13
Cleanup : util-linux-ng-2.17.2-12.14.el6.x86_64 11/13
Cleanup : libblkid-2.17.2-12.14.el6.x86_64 12/13
Cleanup : libuuid-2.17.2-12.14.el6.x86_64 13/13
Verifying : util-linux-ng-2.17.2-12.24.el6_8.1.x86_64 1/13
Verifying : kernel-firmware-2.6.32-642.11.1.el6.noarc 2/13
Verifying : kernel-2.6.32-642.11.1.el6.x86_64 3/13
Verifying : dracut-004-409.el6_8.2.noarch 4/13
Verifying : dracut-kernel-004-409.el6_8.2.noarch 5/13
Verifying : libblkid-2.17.2-12.24.el6_8.1.x86_64 6/13
Verifying : libuuid-2.17.2-12.24.el6_8.1.x86_64 7/13
Verifying : libblkid-2.17.2-12.14.el6.x86_64 8/13
Verifying : util-linux-ng-2.17.2-12.14.el6.x86_64 9/13
Verifying : libuuid-2.17.2-12.14.el6.x86_64 10/13
Verifying : kernel-firmware-2.6.32-431.el6.noarch 11/13
Verifying : dracut-kernel-004-335.el6.noarch 12/13
Verifying : dracut-004-335.el6.noarch 13/13

Dependency Installed:
kernel.x86_64 0:2.6.32-642.11.1.el6

Updated:
util-linux-ng.x86_64 0:2.17.2-12.24.el6_8.1

Dependency Updated:
dracut.noarch 0:004-409.el6_8.2
dracut-kernel.noarch 0:004-409.el6_8.2
kernel-firmware.noarch 0:2.6.32-642.11.1.el6
libblkid.x86_64 0:2.17.2-12.24.el6_8.1
libuuid.x86_64 0:2.17.2-12.24.el6_8.1

Complete!
[root@it66 ~]# yum -y install showmount
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-70.el6_8.2 will be installed
--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: python-argparse for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-70.el6_8.2.x86_64
--> Running transaction check
---> Package keyutils.x86_64 0:1.4-5.el6 will be installed
--> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-1.4-5.el6.x86_64
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-11.el6_8 will be installed
---> Package nfs-utils-lib.x86_64 0:1.1.5-11.el6 will be installed
---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed
---> Package rpcbind.x86_64 0:0.2.0-12.el6 will be installed
--> Running transaction check
---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated
--> Processing Dependency: keyutils-libs = 1.4-4.el6 for package: keyutils-libs-devel-1.4-4.el6.x86_64
---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.4-4.el6 will be updated
---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================
Package Arch Version Repository
Size
=================================================================
Installing:
nfs-utils x86_64 1:1.2.3-70.el6_8.2 updates 335 k
Installing for dependencies:
keyutils x86_64 1.4-5.el6 base 39 k
libevent x86_64 1.4.13-4.el6 base 66 k
libgssglue x86_64 0.1-11.el6 base 23 k
libtirpc x86_64 0.2.1-11.el6_8 updates 82 k
nfs-utils-lib x86_64 1.1.5-11.el6 base 68 k
python-argparse noarch 1.2.1-2.1.el6 base 48 k
rpcbind x86_64 0.2.0-12.el6 base 51 k
Updating for dependencies:
keyutils-libs x86_64 1.4-5.el6 base 20 k
keyutils-libs-devel x86_64 1.4-5.el6 base 29 k

Transaction Summary
=================================================================
Install 8 Package(s)
Upgrade 2 Package(s)

Total download size: 761 k
Downloading Packages:
(1/10): keyutils-1.4-5.el6.x86_64.rpm | 39 kB 00:00
(2/10): keyutils-libs-1.4-5.el6.x86_64.rp | 20 kB 00:00
(3/10): keyutils-libs-devel-1.4-5.el6.x86 | 29 kB 00:00
(4/10): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00
(5/10): libgssglue-0.1-11.el6.x86_64.rpm | 23 kB 00:00
(6/10): libtirpc-0.2.1-11.el6_8.x86_64.rp | 82 kB 00:00
(7/10): nfs-utils-1.2.3-70.el6_8.2.x86_64 | 335 kB 00:00
(8/10): nfs-utils-lib-1.1.5-11.el6.x86_64 | 68 kB 00:00
(9/10): python-argparse-1.2.1-2.1.el6.noa | 48 kB 00:00
(10/10): rpcbind-0.2.0-12.el6.x86_64.rpm | 51 kB 00:00
-----------------------------------------------------------------
Total 499 kB/s | 761 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgssglue-0.1-11.el6.x86_64 1/12
Updating : keyutils-libs-1.4-5.el6.x86_64 2/12
Installing : libtirpc-0.2.1-11.el6_8.x86_64 3/12
Installing : rpcbind-0.2.0-12.el6.x86_64 4/12
Installing : keyutils-1.4-5.el6.x86_64 5/12
Installing : python-argparse-1.2.1-2.1.el6.noarch 6/12
Installing : libevent-1.4.13-4.el6.x86_64 7/12
Installing : nfs-utils-lib-1.1.5-11.el6.x86_64 8/12
Installing : 1:nfs-utils-1.2.3-70.el6_8.2.x86_64 9/12
Updating : keyutils-libs-devel-1.4-5.el6.x86_64 10/12
Cleanup : keyutils-libs-devel-1.4-4.el6.x86_64 11/12
Cleanup : keyutils-libs-1.4-4.el6.x86_64 12/12
Verifying : keyutils-libs-1.4-5.el6.x86_64 1/12
Verifying : libevent-1.4.13-4.el6.x86_64 2/12
Verifying : keyutils-1.4-5.el6.x86_64 3/12
Verifying : rpcbind-0.2.0-12.el6.x86_64 4/12
Verifying : nfs-utils-lib-1.1.5-11.el6.x86_64 5/12
Verifying : libtirpc-0.2.1-11.el6_8.x86_64 6/12
Verifying : libgssglue-0.1-11.el6.x86_64 7/12
Verifying : 1:nfs-utils-1.2.3-70.el6_8.2.x86_64 8/12
Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 9/12
Verifying : python-argparse-1.2.1-2.1.el6.noarch 10/12
Verifying : keyutils-libs-devel-1.4-4.el6.x86_64 11/12
Verifying : keyutils-libs-1.4-4.el6.x86_64 12/12

Installed:
nfs-utils.x86_64 1:1.2.3-70.el6_8.2

Dependency Installed:
keyutils.x86_64 0:1.4-5.el6
libevent.x86_64 0:1.4.13-4.el6
libgssglue.x86_64 0:0.1-11.el6
libtirpc.x86_64 0:0.2.1-11.el6_8
nfs-utils-lib.x86_64 0:1.1.5-11.el6
python-argparse.noarch 0:1.2.1-2.1.el6
rpcbind.x86_64 0:0.2.0-12.el6

Dependency Updated:
keyutils-libs.x86_64 0:1.4-5.el6
keyutils-libs-devel.x86_64 0:1.4-5.el6

Complete!

1.9查看192.168.1.65共享文件夹
[root@it66 ~]# showmount -e 192.168.1.65
Export list for 192.168.1.65:
/tmp/a/root_squash *
/tmp/a/no_root_squash *
/tmp/a/all_squash 192.168.0.0/24
[root@it66 ~]#

1.10挂载测试
[root@it66 ~]#
[root@it66 ~]# showmount -e 192.168.1.65
Export list for 192.168.1.65:
/tmp/a/root_squash *
/tmp/a/no_root_squash *
/tmp/a/all_squash 192.168.0.0/24
[root@it66 ~]# mount -t nfs 192.168.1.65:/tmp/a/root_squash /mnt/
[root@it66 ~]# ls /mnt
[root@it66 ~]# cp /etc/passwd /mnt
cp: cannot create regular file `/mnt/passwd': Permission denied
[root@it66 ~]#

1.11修改it65文件夹权限
[root@it65 ~]# chmod 777 -R /tmp/a/root_squash/
[root@it65 ~]#

1.12重新测试
[root@it66 ~]# cp /etc/passwd /mnt
[root@it66 ~]# ls /mnt/
passwd
[root@it66 ~]# ll !$
ll /mnt/
total 4
-rw-r--r-- 1 nfsnobody nfsnobody 1248 Nov 27 00:00 passwd
[root@it66 ~]# mount -t nfs 192.168.1.65:/tmp/a/no_root_squash/ /opt
[root@it66 ~]# cp /etc/passwd /opt/
[root@it66 ~]# ll /opt/
total 4
-rw-r--r-- 1 root root 1248 Nov 27 00:02 passwd
[root@it66 ~]# mkdir /test
#本机不属于192.168.0.0/24网段,因此不能挂载该目录
[root@it66 ~]# mount -t nfs 192.168.1.65:/tmp/a/all_squash /test
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
[root@it66 ~]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  服务器