linux-2.6.32.2 Configuring NFS Service

Publisher:WanderlustHeartLatest update time:2024-07-29 Source: cnblogsKeywords:linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Reference: http://www.server-world.info/en/note?os=Fedora_17&p=nfs

# systemctl enable
rpcbind.service [root@master ~]# systemctl start
nfs-server.service [ root@master ~]# systemctl start nfs-lock.service [root @master ~]# systemctl start nfs- idmap.service [root@master ~]# systemctl enable rpcbind.service [root@master ~]# systemctl enable nfs-server.service [root@master ~ ]# systemctl enable nfs-lock.service [root@master ~]# systemctl enable nfs-idmap.service local test: mount -t nfs localhost:/home/chen/nfs /mnt/nfs



















Or install the graphical configuration tool: yum search system-config-nfs


2010-08-04 06:08 Backup:



Server: Ubuntu 9.1.0 desktop PC

Client: firendlyARM linux-2.6.32.2 development board

The following is the main configuration of the NFS service on the server side, so that the development board can directly access the directory on the PC server side.

1 安装
sudo aptitude install nfs-kernel-server
sudo apt-get install nfs-common



2 Change the configuration file and make it effective
sudo gedit /etc/exports

Add a line /opt/nfs * (sync,rw) , where /opt/nfs is the directory of the PC, * means allowing all ips, or change it to 192.168.1.19,
sudo exportfs -r

3 Restart the service
sudo /etc/init.d/portmap start
sudo /etc/init.d/nfs-kernel-server start



4 测试
sudo mount -t nfs localhost:/home/cc/nfs /mnt/nfs

Enter /mnt, you can see the files under root_qtopia/, ok.

//----------------------------------------------------

Telnet to the development board (the server IP is 192.168.4.238)

mount -t nfs 192.168.4.238:/opt/FriendlyARM/mini2440/root_qtopia /mnt/


If the mount fails, consider disabling the firewall

Service Method
Start: service iptables start 
Shutdown: service iptables stop
iptables method
Check the firewall status:
/etc/init.d/iptables status
Temporarily disable the firewall:
/etc/init.d/iptables stop
Restart iptables:
/etc/init.d/iptables restart


Keywords:linux Reference address:linux-2.6.32.2 Configuring NFS Service

Previous article:FrindlyARM Mini2440 Temporary Storage
Next article:Busybox - Yaffs2 File System

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号