一、啟動步驟:
1.進入/opt/openoffice4/program
2.運行如下命令
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
3.查看默認端口是否啟用完成
輸入命令:netstat -tln
正常會顯示
tcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN
如果未顯示,可查看防火牆中是否開放了該端口
二、自動啟動設置
1.vi /etc/rc.local
添加如下命令
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
未驗證,懷疑會有路徑問題,驗證后再過來更新