contos5/6/7 nginx php-fpm 安装 memcached

Posted 大智如蠢

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了contos5/6/7 nginx php-fpm 安装 memcached相关的知识,希望对你有一定的参考价值。

# yum install memcached

For CentOS/RHEL 7
# systemctl enable memcached
# systemctl start memcached

For CentOS/RHEL 6/5
# service memcached start
# chkconfig memcached on

# yum groupinstall "Development tools"
# yum install zlib zlib-devel
# yum install php php-devel php-pear

# pecl install memcache

# echo "extension=memcache.so" >> /etc/php.d/memcache.ini

For CentOS/RHEL 7
# systemctl restart nginx
# systemctl restart php-fpm

For CentOS/RHEL 6/5
# service nginx restart
# service php-fpm restart

//创建phpinfo()文件 检查是否安装成功

以上代码注意版本,测试以上代码成功 环境contos6.5 LNMP

以上是关于contos5/6/7 nginx php-fpm 安装 memcached的主要内容,如果未能解决你的问题,请参考以下文章

Nginx+php-fpm 502 504问题

Nginx + php-fpm 随机挂起

nginx php-fpm记录php错误日志怎么配置

nginx的php-fpm 输出php错误日志

docker创建nginx+php-fpm环境

CentOS 6.x 开启Nginx和Php-fpm状态统计