The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.9.tar.bz2
MD5 校验和:f4c2d1f279aadee20871c9d7c0fc9fc5
大小:128 KB
预计所需磁盘空间:1.6 MB
预计构建时间:小于 0.1 SBU
There should be a dedicated user and group to take control of the
rpcbind daemon after
it is started. Issue the following commands as the root user:
groupadd -g 28 rpc &&
useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
-s /bin/false -u 28 rpc
In order to get rpcbind to work properly, first fix the package to use correct service name:
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
Install rpcbind by running the following commands:
./configure --prefix=/usr \
--bindir=/usr/sbin \
--enable-warmstarts \
--with-rpcuser=rpc &&
make
This package does not come with a test suite.
Now, as the root user:
make install
Still as the root user, silence a
warning that is emitted by the systemd unit:
echo 'RPCBIND_OPTIONS=""' > /etc/rpcbind.conf
--with-rpcuser=rpc: This
switch is used so the rpcbind daemon will run as an
unprivileged user instead of the root user.