m1 chip brew install openoffice

1. Brew installation

brew install openoffice
# 卸载:brew uninstall openoffice

vim ~/.zshrc
#追加以下内容
export PATH=$PATH:/Applications/OpenOffice.app/Contents/MacOS

source ~/.zshrc

# 启动openoffice
soffice -headless -accept="socket,host=localhost,port=8002;urp;" -nofirststartwizard &
Directory: /opt/homebrew/Caskroom/openoffice 
Used in java code: officehome is configured as /Applications/OpenOffice.app/Contents

2. dmg installation

Note: If brew cannot be installed, you can download the specified version of dmg and install it directly

Download Apache_OpenOffice_4.1.3_MacOS_x86-64_install_en-GB.dmg (Apache OpenOffice)

Guess you like

Origin blog.csdn.net/kanhcj86/article/details/130735904