2013年6月14日
摘要: 1:安装nfssudo apt-get install nfs-kernel-server2:定义nfs允许挂载的目录及权限打开/etc/exports文件,在末尾加入: /home/xgc *(rw,sync,no_root_squash)3:重启服务(1):sudo /etc/init.d/portmap restart(2):sudo /etc/init.d/nfs-kernel-server restart(3):showmount -e4:本机测试sudo mount -t nfs localhost:/home/jeffery /mnt5:在嵌入式设备上挂载时加-o nolocks 阅读全文
posted @ 2013-06-14 15:45 代码小白 阅读(5471) 评论(0) 推荐(1) 编辑
摘要: 在shell 脚本命令中会经常看到类似这样内容:/dev/null 2>&1,这条命令的意思是将标准输出和错误输出全部重定向到 /dev/null 空设置中,也就是将产生的所有信息丢弃。分析下:>:代表重定向到哪里,例如:echo “micmiu.com” > /home/michaeltest.txt/dev/null:代表空设备文件2>:表示stderr标准错误&:表示等同于的意思,2>&1,表示2的输出重定向等同于11:表示stdout标准输出,系统默认值是1,所以”>/dev/null”等同于 “1>/dev/null故 阅读全文
posted @ 2013-06-14 10:58 代码小白 阅读(229) 评论(0) 推荐(0) 编辑