linux - 如何检查Ubuntu中是否安装了NFS Server?

标签 linux ubuntu nfs

我正在尝试将 NFS 服务器安装到我的全新 Ubuntu 计算机上,并且即将遵循 this article 。但在此之前,有没有办法判断它是否已经安装了?

我运行的是 Ubuntu 12.04

更新:-

这是我运行后得到的 -

dpkg -la | grep nfs

ii  libnfsidmap2                     0.23-2                                            An nfs idmapping library
ii  nfs-common                       1:1.2.2-1ubuntu1                                  NFS support files common to client and server

aptitude 命令给了我这样的 -

aptitude search nfs

p   fai-nfsroot                                                                                                    - Fully Automatic Installation nfsroot package
v   knfs                                                                                                           -
p   libfile-nfslock-perl                                                                                           - perl module to do NFS (or not) locking
p   libnfsidmap-dev                                                                                                - header files and docs for libnfsidmap
i A libnfsidmap2                                                                                                   - An nfs idmapping library
p   libyanfs-java                                                                                                  - Yet Another NFS - a Java NFS library
v   nfs-client                                                                                                     -
i   nfs-common                                                                                                     - NFS support files common to client and server
p   nfs-kernel-server                                                                                              - support for NFS kernel server
v   nfs-server                                                                                                     -
p   nfs4-acl-tools                                                                                                 - Commandline and GUI ACL utilities for the NFSv4 client
p   nfswatch                                                                                                       - Program to monitor NFS traffic for the console
p   p3nfs                                                                                                          - to mount the file systems on the Psion/Symbian PDA/Phone
p   unfs3                                                                                                          - User-space NFSv3 Server
p   unionfs-fuse                                                                                                   - Fuse implementation of unionfs

我也尝试了 netstat 命令 -

netstat -tl | grep 2049

也没有人在听

最佳答案

dpkg -la | grep nfs

将列出您已安装且名称包含 nfs 的所有软件包。

aptitude search nfs

会告诉您 nfs 服务器包名为 nfs-server。既然您没有看到它,我就说您没有安装它。

为了安全起见,还请执行以下操作:

netstat -tl | grep 2049

检查是否有人已经在监听 nfs 端口。

关于linux - 如何检查Ubuntu中是否安装了NFS Server?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20205369/

相关文章:

linux - Hadoop NFS挂载问题

linux - mail -s 在 bash 脚本中等待 CTRL+D

linux - 根据 puppet 中的变量检索事实信息

python - Django WSGI Apache VirtualHost,返回 404 错误

c++ - Ubuntu 操作系统中的文件表

node.js - Express.js : No Such file or directory

redhat - : RPC: Port mapper failure - RPC: Unable to receive errno = Connection refused如何解决

linux - puppet 覆盖模块上的文件资源

python - 在 Python 脚本中打印数字总和

amazon-web-services - 将 AWS EFS 与 Docker 结合使用