2019年4月7日
摘要: 打印输出: location / { default_type text/plain; return 502 "$uri"; } $remode_addr 获取访问者的ID$request_method 判断提交方式 GET POST$http_user_agent 获取浏览器软件 if (条件) 阅读全文
posted @ 2019-04-07 18:27 潇潇六月雨 阅读(371) 评论(0) 推荐(0)
摘要: $redis = new Redis();$redis->connect('127.0.0.1', 6379);$redis->set('name','lyy', 10);$key_1 = $redis->get('name');echo $key_1; 阅读全文
posted @ 2019-04-07 18:23 潇潇六月雨 阅读(139) 评论(0) 推荐(0)
摘要: $mem = new Memcached();$mem->addServer('127.0.0.1',11211,64);$mem->set('name','liuyueyu');echo $mem->get('name'); 阅读全文
posted @ 2019-04-07 18:23 潇潇六月雨 阅读(98) 评论(0) 推荐(0)
摘要: 如今互联网崛起的时代,各大网站都面临着一个大数据流问题,怎么提高网站访问速度,减少对数据库的操作;作为PHP开发人员,我们一般能想到的方法有页面静态化处理、防盗链、CDN内容分发加速访问、mysql数据库优化建立索引、架设apache服务器集群()、还有就是现在流行的各种分布式缓存技术:如memca 阅读全文
posted @ 2019-04-07 15:24 潇潇六月雨 阅读(285) 评论(0) 推荐(0)
摘要: PHP 使用 Redis 安装 开始在 PHP 中使用 Redis 前, 我们需要确保已经安装了 redis 服务及 PHP redis 驱动,且你的机器上能正常使用 PHP。 接下来让我们安装 PHP redis 驱动:下载地址为:https://github.com/phpredis/phpre 阅读全文
posted @ 2019-04-07 15:22 潇潇六月雨 阅读(94) 评论(0) 推荐(0)