搜索

此内容没有您所选择的语言版本。

9.2. Starting and Stopping NFS

download PDF
To run an NFS server, the portmap service must be running. To verify that portmap is active, type the following command as root:
 /sbin/service portmap status 
If the portmap service is running, then the nfs service can be started. To start an NFS server, as root type:
 /sbin/service nfs start 
To stop the server, as root, type:
 /sbin/service nfs stop 
The restart option is a shorthand way of stopping and then starting NFS. This is the most efficient way to make configuration changes take effect after editing the configuration file for NFS.
To restart the server, as root, type:
 /sbin/service nfs restart 
The condrestart (conditional restart) option only starts nfs if it is currently running. This option is useful for scripts, because it does not start the daemon if it is not running.
To conditionally restart the server, as root, type:
 /sbin/service nfs condrestart 
To reload the NFS server configuration file without restarting the service, as root, type:
 /sbin/service nfs reload 
By default, the nfs service does not start automatically at boot time. To configure the NFS to start up at boot time, use an initscript utility, such as /sbin/chkconfig, /usr/sbin/ntsysv, or the Services Configuration Tool program. Refer to the chapter titled Controlling Access to Services in the System Administrators Guide for more information regarding these tools.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.