下载地址:http://www.openoffice.org/zh-cn/download/
下载后自动安装,
启动服务:
vim ~/.zshrc //有的可能是.bashrc文件
或者编辑器打开:open ~/.zshrc
在.zshrc文件中增加
export PATH=$PATH:/Applications/OpenOffice.app/Contents/MacOS
命令行执行:
source ~/.zshrc //使环境变量立即生效
source ~/.bash_profile (不知道用没,多执行一句不会错)
启动OpenOffice
soffice -headless -accept="socket,host=localhost,port=8100;urp;" -nofirststartwizard
(将以服务的方式启动OpenOffice,并监听本机的8100端口)