我有三台机器在生产 -
machineA 10.66.136.129
machineB 10.66.138.181
machineC 10.66.138.183
Run Code Online (Sandbox Code Playgroud)
所有这些机器都安装了 Ubuntu 12.04,我对所有这三台机器都有 root 访问权限。
现在我应该在上面的机器上做下面的事情 -
Create mount point /opt/exhibitor/conf
Mount the directory in all servers.
sudo mount <NFS-SERVER>:/opt/exhibitor/conf /opt/exhibitor/conf/
Run Code Online (Sandbox Code Playgroud)
/opt/exhibitor/conf如上所述,我已经在所有这三台机器中创建了目录。
现在我正在尝试创建一个挂载点。所以我遵循了以下过程 -
以上三台机器都安装NFS支持文件和NFS内核服务器
$ sudo apt-get install nfs-common nfs-kernel-server
Run Code Online (Sandbox Code Playgroud)
在以上三台机器上创建共享目录
$ mkdir /opt/exhibitor/conf/
Run Code Online (Sandbox Code Playgroud)
/etc/exports在以上三台机器中编辑并添加了这样的条目 -
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for …Run Code Online (Sandbox Code Playgroud)