实际项目中有用到文件共享,整理一下。
一、安装部分
基于centos6.5-mini版,离线安装。测试过程中为了方便关闭了防火墙。
1、上传安装包
将rpm安装包上传到服务器,如/root/packages/目录下:
[root@centos6-nfs-server packages]# pwd
/root/packages
[root@centos6-nfs-server packages]# ls
keyutils-1.4-5.el6.x86_64.rpm nfs-utils-1.2.3-78.el6.x86_64.rpm
keyutils-libs-1.4-5.el6.x86_64.rpm nfs-utils-lib-1.1.5-13.el6.x86_64.rpm
libgssglue-0.1-11.el6.x86_64.rpm python-argparse-1.2.1-2.1.el6.noarch.rpm
libtirpc-0.2.1-15.el6.i686.rpm rpcbind-0.2.0-16.el6.x86_64.rpm
libevent-1.4.13-4.el6.x86_64.rpm
2、执行安装
[root@centos6-nfs-server packages]#
[root@centos6-nfs-server packages]# rpm -ivh keyutils-libs-1.4-5.el6.x86_64.rpm --force
warning: keyutils-libs-1.4-5.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:keyutils-libs ########################################### [100%]
[root@centos6-nfs-server packages]# rpm -ivh keyutils-1.4-5.el6.x86_64.rpm
warning: keyutils-1.4-5.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:keyutils ########################################### [100%]
[root@centos6-nfs-server packages]# rpm -ivh libevent-1.4.13-4.el6.x86_64.rpm
warning: libevent-1.4.13-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1: