mount -t cifs -o sync,username="administrator",password="123456" //10.10.3.246/f /usr/local/openresty/nginx/html/down
說明:
mount -t cifs -o 這個就不多說了(照著寫吧)。
username="administrator" 訪問需要的使用者名稱。
password="123465" 訪問需要的密碼。
//10.10.3.246/f 共享機器的IP地址,後面的f為共享名。
/usr/local/openresty/nginx/html/down掛載的目錄(共享目錄被掛載到這裡)。