How to start OpenOffice under windows/linux

When the above article used openOffice to realize the functions of previewing word, excel, pdf, txt, etc. , I found that openOffice did not start, and I was afraid that some students would not start after installation, so I wrote this article to explain how to Start openOffice, how to download and install openOffice in the previous article, and how to use java to realize the online preview function of files. If you haven't seen it, you can go in and take a look, it's still very simple!

Start OpenOffice under windows

Startup steps:

1. First, find the installation location of our OpenOffice, and then open the program folder under the directory, as shown below:

2. Enter cmd in the address bar in the above picture, and press Enter to enter the window in command line mode

Note: There are many ways to enter the command line mode here, as long as you enter the above interface and the folder path is correct

3. The last step of startup is to enter the startup command on the command line page above.

soffice -headless -accept=“socket,host=127.0.0.1,port=8100;urp;” -npfirststartwizard

4. Next, we can use the command to check whether the startup is successful

netstat -anop tcp

As above: Seeing that port 8100 has started successfully, it means that our OpenOffice has started successfully in windows

Start OpenOffice under Linux

The first two steps are the same. Find our OpenOffice installation directory, then enter the corresponding directory, and execute the following command to start our OpenOffice:

cd /opt/openoffice4/program

./soffice "-accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

Welcome everyone to click on the card below to pay attention to "coder trainees"

Guess you like

Origin blog.csdn.net/ybb_ymm/article/details/130017054