【Linux】安装【OpenOffice】
Linux:CentOS 7.6
OpenOffice:4.1.6
一、安装介质下载
下载地址:http://www.openoffice.org/zh-cn/download/
选择:Linux 64-bit(x86-64)(RPM) Chinease[simplified] 4.1.6
点击Download full installation
具体下载地址如下:
https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.6/binaries/zh-CN/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz
二、 创建安装目录
1 |
[root@fileS ~]# mkdir /usr/local/src/openoffice |
三、上传安装介质
openffice安装介质,上传至Linux服务器/usr/local/openoffice目录下(当然,如果Linux可以上网的话,也可以直接下载至/usr/local/openoffice目录下)
四、解压缩安装介质
1 2 3 4 |
[root@fileS openoffice]# tar -xzvf Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz [root@fileS openoffice]# ls Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz zh-CN [root@fileS openoffice]# |
五、安装
1 2 3 4 5 6 7 8 9 |
[root@fileS openoffice]# cd /usr/local/src/openoffice/zh-CN/RPMS/ [root@fileS RPMS]# pwd /usr/local/src/openoffice/zh-CN/RPMS [root@fileS RPMS]# [root@fileS RPMS]# yum localinstall *.rpm ## 装完后会在当前目录下生成一个desktop-integration目录 [root@fileS RPMS]# cd /usr/local/src/zh-CN/RPMS/desktop-integration/ [root@fileS desktop-integration]# [root@fileS desktop-integration]# yum localinstall openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm六 |
六、启动
1 2 3 4 5 6 7 8 9 |
[root@fileS ~]# /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard /opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory ##在启动时,可能会报如上错误,因为缺少软件包的原因。因为依赖关系比较多,建议用yum安装 yum install libXext-1.3.3-3.el7.i686 yum install libXext-1.3.3-3.el7.x86_64 ##openoffice需要图形界面,所以需要安装一下 yum groupinstall "X Window System" |
#后台启动:
1 |
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard >/dev/null 2>&1 & |
#加入到开机自启动
1 2 |
vi /etc/rc.local nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard >/dev/null 2>&1 & |