NFS 安装问题解决

开始使用这个:

mount -t nfs 192.168.119.138:/root/work /share

报错:

cat /var/log/messages | grep mount

Nov  4 15:16:09 air02 rpc.mountd[19139]: Caught signal 15, un-registering and exiting.

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19202]: Could not bind socket: (13) Permission denied

Nov  4 15:16:34 air02 rpc.mountd[19206]: Version 1.2.7 starting

换成这个ok:mount -t nfs air02:/root/work /share

辅助:

1. 使用的命令:

yum install portmap nfs-utils

service nfs start

exportfs -a

service nfs restart

service nfs start.如果在启动之后需要修改exports,可以exportfs -rv重新输出.

2. 文章:

Configure as a NFS Client(http://www.server-world.info/en/note?os=Fedora_19&p=nfs&f=2)
[[email protected] ~]# 
yum -y install nfs-utils
[r[email protected] ~]# 
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name
Domain = 
server.world
[[email protected] ~]# 
systemctl start rpcbind.service 
[[email protected] ~]# 
systemctl start nfs-lock.service 
[[email protected] ~]# 
systemctl start nfs-idmap.service 
[[email protected] ~]# 
systemctl start nfs-mountd.service 
[[email protected] ~]# 
systemctl enable rpcbind.service 
[[email protected] ~]# 
systemctl enable nfs-lock.service 
[[email protected] ~]# 
systemctl enable nfs-idmap.service 
[[email protected] ~]# 
systemctl enable nfs-mountd.service 
[[email protected] ~]# 
mount -t nfs dlp.server.world:/home /home 
[[email protected] ~]# 
df -h 
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/fedora-root   27G  979M   25G   4% /
devtmpfs                 996M     0  996M   0% /dev
tmpfs                   1002M     0 1002M   0% /dev/shm
tmpfs                   1002M  276K 1002M   1% /run
tmpfs                   1002M     0 1002M   0% /sys/fs/cgroup
tmpfs                   1002M  8.0K 1002M   1% /tmp
/dev/vda1                477M   77M  375M  17% /boot
dlp.server.world:/home    27G  982M   25G   4% /home
# home directory on NFS is mounted
[[email protected] ~]# 
vi /etc/fstab
/dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=61085d0b-960b-4835-8c0e-6f036fe7a623 /boot ext4    defaults        1 2
/dev/mapper/fedora-swap swap                    swap    defaults        0 0
# add at the lat line: change home directory this server mounts to the one on NFS
dlp.server.world:/home /home                    nfs     defaults        0 0
Configure as a NFS Server    
[[email protected] ~]# 
yum -y install nfs-utils
[[email protected] ~]# 
vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name
Domain = 
server.world
[[email protected] ~]# 
vi /etc/exports
# write like below *note
/home 10.0.0.0/24(rw,sync,no_root_squash,no_all_squash)
# *note/home 
? shared directory
10.0.0.0/24 
? range of networks NFS permits accesses
rw 
? writable
sync 
? synchronize
no_root_squash 
? enable root privilege
no_all_squash
? enable users‘ authority
[[email protected] ~]# 
systemctl start rpcbind.service 
[[email protected] ~]# 
systemctl start nfs-server.service 
[[email protected] ~]# 
systemctl start nfs-lock.service 
[[email protected] ~]# 
systemctl start nfs-idmap.service 
[[email protected] ~]# 
systemctl enable rpcbind.service 
[[email protected] ~]# 
systemctl enable nfs-server.service 
[[email protected] ~]# 
systemctl enable nfs-lock.service 
[[email protected] ~]# 
systemctl enable nfs-idmap.service
时间: 2024-12-07 21:36:35

NFS 安装问题解决的相关文章

nfs安装配置

nfs可以挂载制作好的根文件系统,同时可以像tftp一样传文件到开发板上. 一.nfs安装 sudo apt-get install nfs-kernel-server 二.建立工作目录 改变权限" 三.修改配置文件 3.1 在/etc/exports文件中添加配置 3.2 重启nfs服务

Ubuntu 14.04下NFS安装配置

Ubuntu 14.04下NFS安装配置 参考:http://www.linuxidc.com/Linux/2013-08/89154.htm 1.执行命令:sudo apt-get install nfs-kernel-server ; 2.执行命令:mkdir /home/jacobxu/nfs-jacoxu 建立一个nfs服务的专有的文件夹; 3.建立好文件夹后,接着执行命令:sudo vi /etc/exports 配置nfs; 4.在文章的最后一行添加:/home/jacobxu/nf

Ubuntu NFS 安装与配置

Ubuntu NFS 安装与配置 一.NFS安装 $ sudo apt-get install nfs-kernel-server nfs-common portmap二.NFS配置    2.1 配置/etc/exports文件    $ sudo vim /etc/exports在文件最后加入如下内容:{{      /rootnfs *(rw,sync,no_root_squash)}}       注:nfs允许挂载的目录及权限在文件/etc/exports中进行了定义.其中:/root

【Oracle 集群】11G RAC 知识图文详细教程之RAC在LINUX上使用NFS安装前准备(六)

RAC在LINUX上使用NFS安装前准备(六) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总.然后形成体系的总结,一则进行回顾复习,另则便于查询使用.本图文文档亦源于此.阅读Oracle RAC安装与使用教程前,笔者先对这篇文章整体构思和形成进行梳理.由于阅读者知识储备层次不同,我将从Oracle RAC安装前的准备与规划开始进行整体介绍安装部署Oracle RAC.始于唐博士指导,对数据库集群进

mysql绿色版安装问题解决(ERROR 2003 (HY000): Can&#39;t connect to MySQL server on &#39;localhost&#39; (10061))

原来一直是使用MySQL安装版没有出现过问题,今天在安装绿色版MySQL时出现了点问题 在安装成windows服务成功后,用net start mysql 启动时提示启动成功,但当我连接mysql就报以下错误: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) my.ini文件内容: [mysqld]basedir=E://databases//mysqldatadir=F://databases//

mysql windows下绿色版mysql安装问题解决办法

1.安装mysql服务出现Install/Remove of the Service Denied!错误 今天在一台机器(OS为windows7 64bit)上装MySQL5.6.16数据库,看了下机器,之前有安装MySQL,不过没启动服务, 于是就打开cmd.exe输入mysqld --install,谁知出现Install/Remove of the Service Denied! 错误,奇怪. 查了下MySQL相关资料,命令没有敲错,为什么安装服务失败呢,后来仔细一想,哦, 权限不够,我用

使用NFS安装oracle软件

昨天,使用openfiler创建nas存储系统,并安装oracle软件,前面一切顺利,到创建数据库时报ora错误,原来使用nfs安装oracle数据库时,mount选项有特殊要求,整理总结如下,以备查: RAC In the table below Binaries is the shared mount points where the Oracle Home and CRS_HOME is installed. Datafiles includes Online Logs, Controlf

CentOS 7 U盘安装问题解决

最近期待以久的CentOS 7正式版终于发布了,在家里无聊,所以就打算在我的小Y上安装一下,由于笔记本原来有安装Windows 7 操作系统,考虑使用的需求,所以决定安装双系统: 1.         下载CentOS-7.0-1406-x86_64-DVD.iso文件. 2.         使用UltraISO制作启动盘,这里要特别说明一下,由于UltraISO在使用64位的Linux操作系统安装文件时只有EFI一个文件夹,所以这里建议先使用Windows自带的工具—资源管理器打开iso文件

SharePoint 2013必备组件离线包安装:AppFabric无法安装问题解决

由于没有网络,无法使用sharepoint2013的安装必备软件的在线下载向导安装,当要安装 SharePoint 2013 的服务器与 Internet 隔离时,通常需要从脱机位置安装必备组件.即使不属于这种情况,从集中脱机位置安装必备组件也可以使您安装已知的受控映像集,从而确保场服务器的一致性.如下图: 必须把SP2013的必备组件全部下载下来,进行离线安装,组件如下: Microsoft .NET Framework 4.5 版 Windows Management Framework 3