linux下nginx+php安装

初始nginx+php环境文件复制安装

需要复制的文件列表:

/usr/local/nginx

/usr/local/php

/usr/local/php-5.4.35

/data/mexue_apps/mysql

/etc/init.d/mysqld

 

需要注意的文件权限:

useradd nginx

useradd mysql

chmod 700 /etc/init.d/mysqld

chown -R mysql:mysql /data/mexue_apps/mysql/data

chown -R nginx:nginx /data/mexue_apps/html/www

 

需要安装的依赖文件:

yum -y install zlib zlib-devel  libjpeg libjpeg-devel libpng libpng-devel gd gd-devel curl curl-devel libxml libxml2  libxml2-devel freetype freetype-devel  libxslt libxslt-devel openldap openldap-devel

yum -y install openssl*

 

开机启动列表:

/usr/local/nginx/sbin/nginx
/usr/local/php/sbin/php-fpm

unconv -listner

/etc/init.d/mysqld start

 

 

二。转码程序安装

yum -y install libreoffice.x86_64

 
yum -y install libreoffice-core libreoffice-headless libreoffice-sdk llibreoffice-writer2latex libreoffice-writer2xhtml libreoffice-pyuno
#yum -y install  openoffice.org-core  openoffice.org-headless  openoffice.org-sdk  openoffice.org-writer2latex  openoffice.org-writer2xhtml  openoffice.org-pyun
 
tar zxf unoconv-0.7.tar.gz
cd unoconv-0.7
make install
mkdir -p /usr/share/fonts/winfonts 
cd /usr/share/fonts/winfonts
#上传windows字体文件到该目录,并在字体所在的目录下面执行以下命令,进行字体注册
yum -y install mkfontscale
yum -y install fontconfig
mkfontscale 
mkfontdir 
fc-cache -fv 
nohup unoconv -listner &
[root@edutest ~]# ps -ef | grep soff
root      2282  2280  0 15:57 pts/0    00:00:00 /usr/lib64/libreoffice/program/soffice.bin --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore --accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
[root@edutest ~]# ps -ef | grep uno
root      2378  1237  0 16:12 pts/0    00:00:00 python /usr/bin/unoconv -listner
unconv -f pdf 文件名称    
#测试转码成pdf,后面跟word文档
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值