Several days ago, I started to test whether OOO supports converting files on the NFS server.
NFS: 168.168.9.11
Ooo end: 168.168.5.139
To allow OOO to access files is the same as accessing local files, including the paths, ensure that the paths configured by the NFS client and the server are the same.
My NFS server exports file is:
/Home/syniapp 168.168.5.139 (no_root_squash, RW, sync) * (RO)
The command to mount the client is:
Sudo Mount-t nfs 168.168.9.11:/home/syniapp. This ensures that the file paths in the/home/syniapp directory are the same between the two machines. Of course, the syniapp folder must be created on the client first.
In the next test, the NFS end runs the web application.ProgramTo call the OpenOffice service of OOO (another Linux host.
The IP address and port used by NFS to connect to the OpenOffice service are ooo ip address and port (8100). The startup command of OOO is as follows:
(Go to the program folder under the OOO installation directory)./soffice-Headless-nofirststartwizard-accept = "socket, host = 0, Port = 8100; URP; StarOffice. Service"
Test 1:
An exception is reported:
Conversion failed: cocould not save output document; OOO errorcode: 283
If the permission is suspected, access the mounted NFS Directory:/home/syniapp on the OOO side, enter the folder to write data, and try to save a file: VI aa.txt cannot be saved!
Obviously, permission settings are incorrect.
Solution:
On the NFS side, change the home/syniapp permission to 777, and the package is the same as the exception after testing. Think about the UID and gid of OOO users are different from those of NFS, can I change it to the same as the NFS end?
(The following command may be inaccurate because it is written by memory)
1. Create a user:
Sudo useradd syniapp
Passwd syniapp
View UID and GID:
ID-u syniapp
1002
ID-G syniapp
1002
500 for different NFS ends, so change:
Sudo usermod-u 500 syniapp
Sudo groupmod-g 500 syniapp
Finally, we found that the data can be written. Oh yeah!
The OOO conversion file of another machine can be successfully called, and garbled characters appear ~~
Take a nap for 10 minutes ....