1、把下面命令另保存为bat后缀名的批处理命令即可,通过双击该批处理启动服务:
cd D:\ApacheOpenOffice\OpenOffice\program
D:
start "oo" soffice.exe -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
EXIT
2、openOffice服务在进程中显示为soffice.exe 和soffice.bin,所以关闭进程时应该查找soffice.exe的pid。
tasklist 命令可以查询进程以及它们对应的pid;
taskkill /pid (进程pid) /f 命令即可关闭进程。