Centos7.0安装memcache
来源:互联网 发布:内衣淘宝代销 编辑:程序博客网 时间:2024/05/16 07:34
[root@localhost /]# yum install -y memcached [root@localhost /]# yum -y install php-pecl-memcache //yum安装php-memcached扩展 接下来让php加载memcache扩展 [root@localhost /]# vi /etc/php.ini 写入extension="memcache.so" [root@localhost /]# systemctl restart httpd [root@localhost /]# systemctl start memcached.service //启动memcached服务 访问phpinfo() 查看memcache版本号及其他信息 [root@localhost /]# vi /var/www/html/memcahce.php <?php $mem=new Memcache; $mem->connect("127.0.0.1",11211); $mem->set('key1','This is first value',0,60); echo $val=$mem->get('key1'); ?> http://ip/memcahce.php
1 0
- Centos7.0安装memcache
- linux(Centos7)中安装memcache
- centos7系统下安装memcache数据库
- CentOs7中 nginx 与 memcache的安装
- linux(centos7)的memcache
- memcache-- memcache安装
- CentOS7.0安装
- centos7.0安装教程
- centos7 安装 opencv3.0
- Centos7安装Redis3.0
- Centos7.0安装redis
- Centos7.0安装memache
- Centos7.0安装memache
- centos7.0 安装初始化
- LNAMP安装CentOS7.0
- centos7.0安装docker
- Centos7安装redis3.0
- centos7.0安装教程
- android adb 点亮 关闭 屏幕 命令
- HDOJ 5813 Elegant Construction(构图)
- 解决使用gradle打包报错“The first result from the daemon was empty. ”
- 设计模式之发布/订阅模式
- Python画图基本方法总结
- Centos7.0安装memcache
- 毕业生自传(离开中视--自主创业)
- POJ 3254(状态压缩dp)
- Android 插件化原理解析——Service的插件化
- androidAnnotations 配置步骤 仿照 androidannotations-develop中 examples
- hdu 1279
- Mybitas配置
- 【C++】时间复杂度
- 对软件产品化的理解