Closed hassin23ayz closed 5 years ago
On which OS do you run? Can you enable debug level?
Hello thanks A lot for your reply
i am running the code on intelliJ , OS is Ubuntu 18.04 , how to enable debug level at your code ? this is the picture of my code running
You need to start server -root option that points to /home/ayx/AAA/nfs-Server directory
i have tried to run the app using the following command
ayx@ayx-ThinkPad:~/projects/SyncOS/simpleNfsServer/out/artifacts/simpleNfsServer_jar$ sudo java -cp simpleNfsServer.jar org.dcache.simplenfs.App -root=/home/ayx/AAA/nfs-Server
it has created "home/ayx/AAA/nfs-Server"
ayx@ayx-ThinkPad:~/AAA$ tree nfs-Server/
nfs-Server/
├── home
│ └── ayx
│ └── AAA
│ └── nfs-Server
└── test.txt
4 directories, 1 file
i am quite sure my command arguments are not correct , how do i put appropriate exports and point to server's shared folder path to the app ? thanks
here is my latest attempt result
you should export /
in the exports file as it relative to root
. e.g.
/home/ayx/AAA/nfs-Server *(rw,all_squash,sec=sys)
THANKS A LOT, it has worked , i am putting my setup image so that others can get help if stuck
hello thanks for your library i was able to run nfs server under ubuntu here is my exports files
/home/ayx/AAA/nfs-Server *(rw,all_squash,sec=sys)
at the client side i used the following mount command
sudo mount.nfs -o nfsvers=4.1,nolock,noacl -rw -v 192.168.0.105:/home/ayx/AAA/nfs-Server nfs-Client
the folder gets mounted but there are no files present what is that i am doing wrong ?