作者归档:midas

php动态扩展安装pdo_msyql.so

1,进入php扩展源安装目录

cd /opt/php-5.5.29/ext/

这里是php自带的安装源,如果编译的时候没有开启可以在这里添加

cd pdo_mysql

2,   安装扩展

/usr/local/php/bin/phpize
./configure --with-php-c[......]

Read more

发表在 php | 留下评论

PHP的SOCKT优化

什么是Unix domain socket?—— 维基百科
Unix domain socket 或者 IPC socket是一种终端,可以使同一台操作系统上的两个或多个进程进行数据通信。与管道相比,Unix domain sockets 既可以使用字节流和数据队列,而管道通信则只能通过字节流。U[……]

Read more

发表在 php | 3条评论

php安装xcache加速

  1. 安装xcache
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
tar xf xcache-3.1.0.tar.gz
cd xcache-3.1.0
phpize
./configur[......]

Read more

发表在 php | 一条评论

源码安装php(支持jpeg,freetype,png,mcrypt)

1,安装系统需要的库文件
yum install *libxml* bzip* libcurl* -y
2,进入php安装包目录,按顺序安装模块及php
cd /opt/php
tar xf jpegsrc.v9.tar.gz
cd jpeg-9
./configure --prefix[......]

Read more

发表在 php | 一条评论

世界,您好!

第一篇,福利,必须福利

cdbf6c81800a19d8f549ef2236fa828ba61e464a

 [……]

Read more

发表在 初始 | 留下评论