9 月 172014
 

关闭防火墙和SELinux
[root@localhost ~]# chkconfig –list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# chkconfig –level 35 iptables off
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# vi /etc/sysconfig/selinux

安装NFS及依赖软件包
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nfs-utils x86_64 1:1.2.3-39.el6_5.3 updates 321 k
Installing for dependencies:
keyutils x86_64 1.4-4.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-6.el6_5.2 updates 79 k
nfs-utils-lib x86_64 1.1.5-6.el6_5 updates 67 k
rpcbind x86_64 0.2.0-11.el6 base 51 k

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

修改NFS服务运行级别设置为随系统刚启动

[root@localhost ~]# chkconfig –list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@localhost ~]# chkconfig –level 35 nfs on
[root@localhost ~]# init 6

mount文件系统类型参数
-t, –types vfstype
The argument following the -t is used to indicate the filesystem
type. The filesystem types which are currently supported
include: adfs, affs, autofs, cifs, coda, coherent, cramfs,
debugfs, devpts, efs, ext, ext2, ext3, ext4, hfs, hfsplus, hpfs,
iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4,
ramfs, reiserfs, romfs, squashfs, smbfs, sysv, tmpfs, ubifs,
udf, ufs, umsdos, usbfs, vfat, xenix, xfs, xiafs. Note that
coherent, sysv and xenix are equivalent and that xenix and
coherent will be removed at some point in the future — use sysv
instead. Since kernel version 2.1.21 the types ext and xiafs do
not exist anymore. Earlier, usbfs was known as usbdevfs. Note,
the real list of all supported filesystems depends on your ker-
nel.

将安装光盘镜像挂载至文件系统
[root@localhost ~]# mount -t iso9660 -o loop CentOS-6.5-x86_64-minimal.iso /mnt/
[root@localhost ~]# 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)
/root/CentOS-6.5-x86_64-minimal.iso on /mnt type iso9660 (rw,loop=/dev/loop0)
[root@localhost ~]#
查看挂载
[root@localhost ~]# ls /mnt/
CentOS_BuildTag isolinux RPM-GPG-KEY-CentOS-Debug-6
EFI Packages RPM-GPG-KEY-CentOS-Security-6
EULA RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Testing-6
GPL repodata TRANS.TBL
images RPM-GPG-KEY-CentOS-6
[root@localhost ~]#

输出挂载点
[root@localhost ~]# vi /etc/exports
/mnt 192.168.100.0/24(ro,sync)

重启

执行安装过程中查看主机与服务期间网连接状态
[root@localhost ~]# netstat -tun
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 64 192.168.100.144:22 192.168.100.136:52912 ESTABLISHED
tcp 0 0 192.168.100.144:2049 192.168.100.136:1021 ESTABLISHED
[root@localhost ~]#
文本模式的限制
不允许自定义分区,不可选择软件包

centos-nfs-installation-repo-01 centos-nfs-installation-repo-02 centos-nfs-installation-repo-03 centos-nfs-installation-repo-04 centos-nfs-installation-repo-05 centos-nfs-installation-repo-06 centos-nfs-installation-repo-07 centos-nfs-installation-repo-08 centos-nfs-installation-repo-09 centos-nfs-installation-repo-10 centos-nfs-installation-repo-11 centos-nfs-installation-repo-12 centos-nfs-installation-repo-13 centos-nfs-installation-repo-14……