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
 
wget -c  http://dag.wieers.com/home-made/unoconv/unoconv-0.7.tar.gz
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文档

你可能感兴趣的:(linux下nginx+php安装)