Centos7下安装openOffice
简介OpenOffice.org 是一套跨平台的办公室软件套件,能在Windows、Linux、MacOS X (X11)和 Solaris 等操作系统上执行。它与各个主要的办公室软件套件兼容。OpenOffice.org 是免费软件,任何人都可以免费下载、使用及推广它。
一、安装OpenOffice
1、安装环境
Centos 8
2、下载OpenOffice
wget https://udomain.dl.sourceforge.net/project/openofficeorg.mirror/4.1.12/binaries/zh-CN/Apache_OpenOffice_4.1.12_Linux_x86-64_install-deb_zh-CN.tar.gz
3、解压
tar -zxvf Apache_OpenOffice_4.1.12_Linux_x86-64_install-rpm_zh-CN.tar.gz
4、进入zh-CN文件夹下的RPMS目录下,执行yum localinstall *.rpm安装必要的包
cd zh-CN/RPMS/
yum localinstall *.rpm
6、安装完成后在当前目录下会生成一个desktop-integration,进入该目录,并安装
cd desktop-integration/
yum localinstall openoffice4.1.12-redhat-menus-4.1.12-9809.noarch.rpm
二、启动OpenOffice
1、临时启动
soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard
2、后台启动
nohup soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
3、开机启动
vim /etc/rc.local
nohup soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
三、验证是否启动成功
[root@localhost ~]# netstat -ntlp|grep 8100
tcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN 1489657/soffice.bin
[root@localhost ~]# ps -ef|grep office
root 1489633 1489338 0 16:13 pts/0 00:00:00 /opt/libreoffice7.1/program/oosplash --headless --accept=socket,host=127.0.0.1,port=8100;urp; --nofirststartwizard
root 1489657 1489633 0 16:13 pts/0 00:00:00 /opt/libreoffice7.1/program/soffice.bin --headless --accept=socket,host=127.0.0.1,port=8100;urp; --nofirststartwizard
root 1489734 1489502 0 16:16 pts/1 00:00:00 grep --color=auto office
四、使用命令转pdf
soffice --headless --invisible --convert-to pdf path/to/officefile --outdir path/to/outdir
path/to/officefile:office文件地址
path/to/outdir:输出目录
前一篇博客中已经说过Golang对Gzip的处理,其实这是我的服务器端的处理,那么当我们服务器返回Gzip压缩的字符串后,客户端如何进行解压呢?本文主要记录下JavaScript对Gzip进行压缩和解压处理。
网页扫描二维码库:Html5-Qrcode,官网地址:https://scanapp.org/html5-qrcode-docs/
nodejs中使用npm和yarn,使用最新阿里云镜像 aliyun mirror,网上很多还是文章用的是下面这个地址~~yarn config set registry https://registry.npm.taobao.org~~
最近想把公司的内网几台服务器能通过打开一个网站的方式进行管理,所以寻求了一圈最终选择了Teleport。Teleport,这是一个使用Go语言编写的,高效的现代SSH管理工具。
Centos中用Chrome将网页导出为PDF,chrome --headless --print-to-pdf https://developer.chrome.com/
快速生成表格
Electron页面跳转、浏览器打开链接和打开新窗口
在使用Git的过程中,不想每次都输入用户名和密码去拉取代码,所以就需要保存这些信息,那么既然有保存了,就必须有清除功能。
在Mac电脑中,如何对Git的用户名和密码进行修改呢?起初不懂Mac,所以整了很久,本文将记录如何对这个进行操作,以便后期使用。
Docker编译镜像出现:fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.2c4ac24e.tar.gz: No such file or directory问题