Mounting between two linux servers

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.