码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2017-12-09 14:02:15      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:restart   php   etc   develop   代码   ini   /etc/   安装   system   

# 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

标签:restart   php   etc   develop   代码   ini   /etc/   安装   system   

原文地址:http://www.cnblogs.com/phper8/p/8011265.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!