版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_14994863/article/details/81457737
打开本地openOffice的安装目录:
我这里是:C:\Program Files (x86)\OpenOffice 4\program
然后打开命令行工具,键入如下命令即可开启服务:
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
因为默认情况下,Windows PowerShell 不会从当前位置加载命 令。所以命令前面需要添加”./”,代表从当前位置加载命令,如下:
C:\Program Files (x86)\OpenOffice 4\program> ./soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard