Two linux servers can be mounted between two linux servers: SERVER: 1. First, you need to set the directory on the host (1) to be mounted. Modify/etc/exports, add a shared directory. Here, the host refers to the server (the directory to be shared)/srv/www/app/wtcms/webroot/upload 10.10.10. * (ro, sync, no_root_squash)/srv/www/app/wtcms/webroot/main 10.10.10. * (ro, sync, no_root_squash) specifically,/srv/www/app/wtcms/webroot/upload/srv/www/app/wtcms/webroot/main indicates the directory to be shared 10.10.10. * Client ip address (ip address that can be accessed) 2. Execute the command exprotfs-rv to make the modification file take effect 3. Disable the server firewall 4. Start the service: run service nfs restart service portmap restart client: mount execution command: 1. Start service: service nfs restart service portmap restart 2. mount 172.16.203.246: /srv/www/app/wtcms/webroot/main/srv/ww w/app/wtweb/webroot/main-nolock-t nfs where 172.16.203.246 is the ip address of the server/srv/www /app/wtcms/webroot/main directory shared by the server/srv/www/app/wtweb/webroot/main client directory (this directory must be available) 3. unmount: umount/srv/www/app/wtweb/webroot/main client directory (this directory must be available)