centos7 4 安裝nfs及使用

2021-09-19 18:28:31 字數 716 閱讀 1260

一、安裝nfs

1.yum -y install nfs-utils rpcbind

2.建立共享資料夾/data/nfc : touch /data/nfc

3.vi /etc/exports 編輯nfs的配置檔案

4.新增內容 /data/nfc 172.18.155.161(被掛載伺服器)(rw) ###授予該伺服器對本地/data/share檔案的遠端呼叫許可權為可讀可寫。

rw:read-write,可讀寫;

ro:read-only,唯讀;

sync:檔案同時寫入硬碟和記憶體;

async:檔案暫存於記憶體,而不是直接寫入記憶體;

5.啟動nfs.service :systemctl start nfs.service

6.172.18.155.162(主動掛載)伺服器也要安裝nfs服務:

yum install showmount

7.檢視提供nfs服務的服務列表:

showmount -e 172.18.155.161

8.在172.18.155.162(主動掛載伺服器)最好也建立乙個/data/nfc路徑,兩個伺服器建立/data/nfc的使用者最好為同乙個名稱,如都是admin使用者

9.在172.18.155.162伺服器上掛載161的/data/nfc到本機的/data/nfc(不用重名也可以):

mount -t nfs /data/nfc /data/nfc

centos7 4安裝及使用clickhouse

一 安裝 按照官方文件推薦,用yum方式安裝最方便 yum install yum utils y rpm import yum config manager add repo loaded plugins fastestmirror adding repo from repo.yandex.ru ...

CentOS 7 4 編譯安裝Tengine

tengine官網上有個非常簡單的教程,中間並未涉及到一些常用的設定,所以僅供參考。一下午為本人的安裝步驟及過程。配置firewalld,iptables,關閉selinux 1 安裝必要的編譯環境好 由於tengine安裝需要使用源 自行編譯,所以在安裝前需要安裝必要的編譯工具 yum y upd...

Ansible 安裝步驟 (Centos7 4

epel安裝2 安裝epel repo源 epel rhel 7 wget o etc yum.repos.d epel.repo epel rhel 6 wget o etc yum.repos.d epel.repo epel rhel 5 wget o etc yum.repos.d epel...