部署社交网站 (12)

[root@php php-5.3.28]# ./configure --prefix=http://www.likecs.com/usr/local/php --with-gd --with-zlib --with-mysql --with-mysqli --with-mysql-sock --with-config-file-path=http://www.likecs.com/usr/local/php --enable-mbstring --enable-fpm --with-jpeg-dir=http://www.likecs.com/usr/lib

[root@php php-5.3.28]# make&&make install

B.配置php-fpm进程

[root@php php-5.3.28]# cd /usr/local/php/etc/

[root@php etc]# cp php-fpm.conf.default php-fpm.conf

[root@php etc]# vim php-fpm.conf

//找到这些内容,然后修改

pid = run/php-fpm.pid

user = php

group = php

listen = 0.0.0.0:9000

pm.max_children = 50

pm.start_servers = 20

pm.min_spare_servers = 5

pm.max_spare_servers = 35

C.启动php-fpm进程

[root@php etc]# /usr/local/php/sbin/php-fpm

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzsspy.html