門(mén)戶網(wǎng)站建設(shè)工作會(huì)議/國(guó)外引流推廣軟件
(1)NFS離線安裝
使用nfs配置兩臺(tái)機(jī)器共享目錄
假設(shè)兩臺(tái)機(jī)器188.188.30.32(服務(wù)端)、188.188.30.31(客戶端)配置nfs
1.在可以聯(lián)網(wǎng)的機(jī)器上下載rpm安裝包
yum -y install nfs-utils --downloadonly --downloaddir /home/nfs
2.將nfs包導(dǎo)入到需要安裝nfs的機(jī)器上(兩臺(tái)機(jī)器都需要此操作)
rpm -ivh *.rpm
3.啟動(dòng)nfs服務(wù)(兩臺(tái)機(jī)器都需要此操作)
systemctl start rpcbind.service && systemctl enable rpcbind.service
?systemctl start nfs-server.service && systemctl enable nfs-server.service
4、在服務(wù)端(188.188.30.32)上添加配置
?vim /etc/exports
/mnt/smart/backup_nc 188.188.30.*(rw,root_squash,async)
/mnt/smart/data 188.188.30.*(rw,root_squash,async)
/mnt/smart/elasticsearch 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/ftp 188.188.30.*(rw,root_squash,async)
/mnt/smart/iserver 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/mysql_nc 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/redis 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/zookeeper/data 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/zookeeper/log 188.188.30.*(rw,no_root_squash,async)
/mnt/smart/kafka 188.188.30.*(rw,no_root_squash,async)
注意:其中no_root_squash 是不是root賬號(hào)執(zhí)行
#重新讀取配置文件
exportfs -r
2、rancher部署pv、pvc