➜ ~ echo "/opt/nfs 10.10.10.*(rw,all_squash,sync)">>/etc/exports
zsh: permission denied: /etc/exports
解决办法:
1)sudo sh -c ' echo "/opt/nfs 10.10.10.*(rw,all_squash,sync)" >> /etc/exports’
2)echo "/opt/nfs 10.10.10.*(rw,all_squash,sync)" |sudo tee /etc/exports
echo "/opt/nfs 10.10.10.*(rw,all_squash,sync)" |sudo tee -a /etc/exports -a:append 追加
3)提升权限