1、启动 OpenOffice 命令
./soffice "-accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager" -nologo
-headless -nofirststartwizard &
or
./soffice -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard &
查看服务是否存在
netstat -tunlp
报错:
OpenOffice not start:connection failed: socket,host=172.28.3.53,port=8100,tcpNoDelay=1:
java.net.ConnectException: Connection refused (Connection refused)