简体   繁体   中英

How to run rpc in Windows Linux Subsystem?

I want to execute a basic c program involving RPC. However, when I try to run it on Ubuntu 18.04 LTS (Linux subsystem) I get the following error.

mugdha@LAPTOP-1ME15EK1:~$ rpcinfo

rpcinfo: can't contact rpcbind: RPC: Remote system error - No such file or directory

Error even though rpbind is installed

try to see path where pkg accurately install.

which rpcinfo

maybe this problem related to port, When you start a server in WSL, both windows and linux share the same localhost. for more see port forwarding port forwarding .

How did you solve this problem? I'm stuck in the same problem as you were

Enable the rpcbind and nfs services.

sudo update-rc.d rpcbind enable

sudo update-rc.d nfs-common enable

Restart the rpcbind service

sudo service rpcbind restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM