Centos_Mount挂载linux系统

1.使用NFS

需要提前在客户端预授权,不需要持账号密码,赋予只读或者读写权限。

2.手动挂载命令

mount -t nfs 192.168.99.100:/Backup/WordPress/Main /    www/backup/site
mount -t nfs 192.168.99.100:/Backup/WordPress/Database /www/backup/database

3.自动挂载命令,vi /etc/fstab最后加入:

192.168.99.100:/Backup/WordPress/Main /www/backup/site nfs defaults 0 0
192.168.99.100:/Backup/WordPress/Database /www/backup/database nfs defaults 0 0
Editing is enabled. Use the "Save changes" button below the editor to commit modifications to this file.