Сетевая файловая система (NFS) Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:файловые_сервера:nfs [2012/07/29 10:59]
[Сетевая файловая система (NFS)]
wiki:руководство_по_ubuntu_server:файловые_сервера:nfs [2012/07/29 19:41] (текущий)
[Ссылки]
Строка 17: Строка 17:
 ====Установка==== ====Установка====
  
-At a terminal prompt enter the following command to install the NFS Server+Для установки ​NFS срвера в терминале наберите следующую команду
- +<​code>​sudo apt-get install nfs-kernel-server</​code>​
-sudo apt-get install nfs-kernel-server+
  
 ====Настройка==== ====Настройка====
  
-You can configure the directories to be exported by adding them to the /​etc/​exports ​fileFor example+Вы можете настроить какие каталоги будут экспортированы,​ добавив их в файл ​/​etc/​exports. ​Например
 +<​code>​
 /​ubuntu ​ *(ro,​sync,​no_root_squash) /​ubuntu ​ *(ro,​sync,​no_root_squash)
 /home    *(rw,​sync,​no_root_squash) /home    *(rw,​sync,​no_root_squash)
 +</​code>​
 +Вы можете заменить * на один из форматов сетевого имени. Делайте объявление сетевого имени настолько точным,​ насколько это возможно,​ чтобы нежелательные системы не смогли получить доступ к ресурсам монтирования NFS.
  
-You can replace * with one of the hostname formats. Make the hostname declaration as specific as possible so unwanted systems cannot access the NFS mount. +Для запуска ​NFS сервера вы можете выполнить следующую команду в терминале
- +<​code>​sudo /​etc/​init.d/​nfs-kernel-server start</​code>​
-To start the NFS server, you can run the following command at a terminal prompt+
- +
-sudo /​etc/​init.d/​nfs-kernel-server start+
  
 ====Настройка клиента NFS==== ====Настройка клиента NFS====
  
-Use the mount command to mount a shared ​NFS directory from another machineby typing a command line similar to the following at a terminal prompt:+Используйте команду **mount** для подключения ​NFS каталога общего пользования другой машинынабрав в терминале команду,​ похожую на приведенную ниже: 
 +<​code>​sudo mount example.hostname.com:/ubuntu /​local/​ubuntu</​code>​ 
 +<note important>​Каталог точки монтирования /​local/​ubuntu должен существовать. В нем не должно быть никаких файлов или поддиректорий.</​note>​
  
-sudo mount example.hostname.com:/ubuntu /​local/​ubuntu+Альтернативным вариантом подключения NFS ресурса является добавления строки в файл /etc/fstabСтрока должна содержать сетевое имя NFS сервера,​ экспортируемый каталог на сервере и каталог на локальной машине,​ куда будет монтироваться NFS ресурс.
  
-The mount point directory /​local/​ubuntu must exist. There should be no files or subdirectories in the /​local/​ubuntu directory. +Общий синтаксис для этой строки в файле ​/​etc/​fstab ​следующий
- +<​code>​example.hostname.com:/​ubuntu /​local/​ubuntu nfs rsize=8192,​wsize=8192,​timeo=14,​intr</​code>​ 
-An alternate way to mount an NFS share from another machine is to add a line to the /​etc/​fstab ​file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted. +Если вы испытываете сложности с монтированием ​NFS ресурсаубедитесь,​ что пакет **nfs-common** установлен на вашем клиентеДля установки пакета **nfs-common** введите следующую команду в терминале
- +<​code>​sudo apt-get install nfs-common</​code>​
-The general syntax for the line in /etc/fstab file is as follows+
- +
-example.hostname.com:/​ubuntu /​local/​ubuntu nfs rsize=8192,​wsize=8192,​timeo=14,​intr +
- +
-If you have trouble mounting an NFS sharemake sure the nfs-common ​package is installed on your clientTo install ​nfs-common ​enter the following command at the terminal prompt+
- +
-sudo apt-get install nfs-common+
  
 ====Ссылки==== ====Ссылки====
  
-Linux NFS faq +  -- [[http://​nfs.sourceforge.net/​|ЧаВо по Linux NFS]]. 
- +  -- [[https://​help.ubuntu.com/​community/​NFSv4Howto|Ubuntu Wiki NFS HowTo]].
-Ubuntu Wiki NFS Howto+
  
 ---- ----