There was a small problem when I configured NFS. I never saw portmap. Later I realized that there was no porpmap under Ubuntu11.10, and only rpcbind was used, which wasted a lot of time. The following is a summary based on the original article: # install the required software package sudoapt-getinstallrpcbindsudoapt-get &
There was a small problem when I configured NFS. I never saw portmap. Later I realized that there was no porpmap under Ubuntu 11.10, and only rpcbind was used, which wasted a lot of time. The following is a summary based on the original article and the actual experience:
# Install the required software package
- Sudo apt-get install rpcbind
- Sudo apt-get install nfs-kernel-server
Some say that you want to install rpcbind, but it seems that you have installed the software when installing nfs-kernel-server.
# Start rpcbind
- Sudo rpcbind
Server operations
# Creating folders
- $ Mkdir MpiWork
# Edit and modify the configuration file
View plaincopy to clipboardprint?
- $ Sudo vim/etc/exports
# Add the following content. Note that there is no space after the comma
- /Home/luo/MpiWork * (rw, sync)
# Restart the service.
Sudo service nfs-kernel-server restart
Client operations
# If no error is reported after restart, perform the following test to replace ipaddr with the IP address of the server.
- Sudo mount ipaddr:/home/luo/MpiWork
To enable automatic mounting, open/etc/fstab and add the following statement to the last line:
- 192.168.1.105:/home/luo/MpiWork nfs ults 0 0
192.168.1.105 is the IP address of my own server.
So far, the job is finished.