标签:share shared anon port pcb util common com tar
yum -y install nfs-utils rpcbindseradd -u 27 -g mysql mysql
mkdir /home/sharednfs
vim /etc/exports
/home/sharednfs *(rw,all_squash,anonuid=27,anongid=27)
systemctl restart nfs
systemctl enable rpcbind.service
systemctl enable nfs-server.service
/etc/init.d/mysqld stop
cp -rp /var/lib/mysql/ /var/lib/mysqlnfs
修改my.cnf 的路劲
reboot
apt-get install nfs-common
yum install nfs-utils -y
/etc/init.d/rpcbind start
mkdir /var/lib/mysqlnfs
mount -t nfs 192.168.31.207:/var/lib/mysql /var/lib/mysqlnfs
showmount -e 127.0.0.1
vi /etc/fstab
添加: 192.168.56.101:/opt/test /opt/test nfs defaults 0 0
标签:share shared anon port pcb util common com tar
原文地址:https://blog.51cto.com/hzcto/2420003