- 博客(4)
- 收藏
- 关注
原创 linux解决openoffice进程异常退出,设置意外退出自动重启sh脚本
步骤1 编写脚本直接在根目录 vim openoffice.sh#!/usr/bin/bashOPENOFFICEPID=`ps -ef|grep "/opt/openoffice4/program/soffice"|grep -v grep|grep -v grep|awk '{print $2}'`if [ ! -n "$OPENOFFICEPID" ];then echo "OPENOFFICEPID is empty" echo "start openoffice"
2020-09-04 15:56:36 851
原创 CentOS6.5搭建LNMP操作系统
CentOS6.5搭建LNMP1:查看环境:[root@10-4-14-168 html]# cat /etc/redhat-releaseCentOS release 6.5 (Final)2:关掉防火墙[root@10-4-14-168 html]# chkconfig iptables off3:配置CentOS 6.0 第三方yum源(CentOS默认的标准源里没有nginx软件包)#wget http://www.atomicorp.com/installers/atomic#
2020-07-24 09:32:52 113
原创 解决nginx报错:nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)
解决nginx报错:nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)报错描述:nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)通过ansible远程给主机更换端口并重新启动nginx服务,出现以上报错信息(权限被拒绝)。解决方式:经检查发现是selinux导致报错。[root@localhost nginx]# geten
2020-07-23 18:25:14 2117
原创 PHP使用openoffice实现word,ppt,Excel在线转PDF浏览。windows和linux系统不同的解决方案
一、PHP使用openoffice实现office在线转PDF介绍最近需要在网页上实现预览上传的word文档,之前没有实现过相关功能,搜索了一下网上的资料,完整的教程较少,因此将自己实现的步骤和遇到的问题记录下来,希望能帮到有需要的人1.目前前端只能实现在线预览pdf格式的文件,可以用pdf.js或者jquery.media.js来实现。2.要实现其他格式的文件预览,需要在后端进行格式转换。3.目前我了解到的后端对office文档格式的转换方法有:a、先转换成swf格式->在转换成pdf格
2020-05-26 18:36:15 3334 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人