懒子汉

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年6月17日

摘要: 编译安装swoole:cd && wget https://github.com/swoole/swoole-src/archive/1.8.6-stable.tar.gz && tar -zxvf 1.8.6-stable.tar.gz && cd swoole-src-1.8.6-stable/ 阅读全文
posted @ 2016-06-17 11:05 懒子汉 阅读(407) 评论(0) 推荐(0) 编辑

2016年6月15日

摘要: Apache是一个跨平台的web服务器,由于其简单高效、稳定安全的特性,被广泛应用于计算机技术的各个领域。现在,Apache凭借其庞大的用户数,已成为用户数排名第一的web服务器。 尽 管如此,在实际的生产环境中,我们仍然不可能直接使用默认配置的Apache来充当服务器。毕竟,为了更充分合理地利用A 阅读全文
posted @ 2016-06-15 19:20 懒子汉 阅读(42505) 评论(0) 推荐(0) 编辑

2016年6月12日

摘要: yum install git若是从老版本升级,则按下面方法。(centos中)先更新系统sudo yum update 安装依赖的包yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl- 阅读全文
posted @ 2016-06-12 20:07 懒子汉 阅读(2924) 评论(0) 推荐(0) 编辑

2016年6月1日

摘要: memcached安装 查找memcached: yum search memcached安装 memcached yum -y install memcached验证安装memcached memcached -h修改配置:[root@localhost ~]# vi /etc/sysconfig 阅读全文
posted @ 2016-06-01 09:26 懒子汉 阅读(208) 评论(0) 推荐(0) 编辑

2016年5月27日

摘要: <?php/*Redis可真能坑爷,原先的设计用redis保存临时数据,可到了实际应用(实际上也就是几十个人同时用),总是出现莫名其妙的问题,最常见的就是读不出数据来,调试了好多天,那问题还是偶尔出现(也不是一直有,偶尔读不到),幸好这段时间接触swoole,发现有swoole_table这么个好东 阅读全文
posted @ 2016-05-27 16:11 懒子汉 阅读(2538) 评论(0) 推荐(0) 编辑

2016年5月26日

摘要: public function test() { $count = []; $count[] = ['key' => 'name', 'type' => 'string', 'len' => 50]; $count[] = ['key' => 'title', 'type' => 'string', 阅读全文
posted @ 2016-05-26 20:54 懒子汉 阅读(294) 评论(0) 推荐(0) 编辑

摘要: client.html: <!doctype html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/ 阅读全文
posted @ 2016-05-26 16:07 懒子汉 阅读(800) 评论(0) 推荐(0) 编辑

摘要: 一、crond简介 crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务。 阅读全文
posted @ 2016-05-26 15:02 懒子汉 阅读(4315) 评论(0) 推荐(0) 编辑

摘要: [root@localhost etc]# type home --检查是否占用-bash: type: home: not found[root@localhost etc]# alias home='cd /home/wwwroot;ll' --创建命令[root@localhost etc]# 阅读全文
posted @ 2016-05-26 14:59 懒子汉 阅读(301) 评论(0) 推荐(0) 编辑

摘要: 临时设置:即重启后就失效 查询防火墙状态: service iptables status 停止防火墙: service iptables stop 启动防火墙: service iptables start 重启防火墙: service iptables restart 保存防火墙设置: serv 阅读全文
posted @ 2016-05-26 14:52 懒子汉 阅读(894) 评论(0) 推荐(0) 编辑