2016年10月11日
摘要: 开发环境配置 再使用 mongodb 之前,需要先安装 pymongo ,以及flask_mongoengine 书写model models.py,代码如下 书写视图 views.py,代码如下 阅读全文
posted @ 2016-10-11 23:57 zeopean 阅读(5397) 评论(0) 推荐(0)
  2016年9月26日
摘要: 接下来,记录下linux操作系统 的 系统监控的一些基本操作,内容如下 系统监控 查看系统信息 vmstat 的使用 参数解析 apache 监控 (借鉴:http://wpguru.co.uk/2012/06/how-to-install-apachetop-on-centos/) 安装 mysq 阅读全文
posted @ 2016-09-26 12:00 zeopean 阅读(380) 评论(0) 推荐(0)
摘要: 接下来,说一下links 和 lynx 的一些基本操作,首先你,需要安装这俩个软件 links links的功能键 lynx 可以以 lynx filename 和 lynx PROTOCOL://HOST/PATH/FILENAME 的形式 运行 Lynx 功能键 阅读全文
posted @ 2016-09-26 11:57 zeopean 阅读(538) 评论(0) 推荐(0)
  2016年8月26日
摘要: 接下来,记录一下workerman 的回调函数 阅读全文
posted @ 2016-08-26 17:58 zeopean 阅读(730) 评论(0) 推荐(0)
摘要: 2.创建一个workerman 进程实例 php demo.pro.php start php demo.pro.php stop php demo.pro.php reload 3.在新的窗口进行连接 telnet 127.0.0.1 8585 阅读全文
posted @ 2016-08-26 17:57 zeopean 阅读(358) 评论(0) 推荐(0)
  2016年5月2日
摘要: 为eth0 配置网络 1 vi /etc/network/intefaces 添加以下内容 1 auto eth0 2 iface eth0 inet static 3 address 192.168.0.10 4 netmask 255.255.255.0 5 gateway 192.168.0. 阅读全文
posted @ 2016-05-02 10:25 zeopean 阅读(469) 评论(0) 推荐(0)
摘要: 下载安装包 1 curl -sS https://getcomposer.org/installer | php 把 composer 把复制到 /usr/bin/composer 1 mv composer.phar /usr/bin/composer composer 运行,ok caompos 阅读全文
posted @ 2016-05-02 10:23 zeopean 阅读(200) 评论(0) 推荐(0)
摘要: 最近使用了laravel5 的 缓存,做些记录,若有错误,还望指正 设置缓存 1 #put 方式 2 Cache::put('key', 'value', $minutes); 3 4 # 设置文件缓存 5 Cache::store('file')->get('foo'); 6 7 #使用redis 阅读全文
posted @ 2016-05-02 10:21 zeopean 阅读(13836) 评论(0) 推荐(0)
摘要: 环境配置 设置global user.email git config --global user.email "email@.." 设置global user.name git config --global user.name "your-name" 常规操作 克隆github地址 git cl 阅读全文
posted @ 2016-05-02 10:09 zeopean 阅读(160) 评论(0) 推荐(0)
摘要: 今天尝试安装了 rabbitmq ,用作php 的消息队列,下面是具体的步骤 首先呢,需要在github 下载这个包,我这里用的是 v0.5.2 版本的 rabbitmq v0.5.2 接下来,通过 使用 .sh脚本,进行安装 1 #切换目录到 rabbittmq-c ,更改文件属性 2 chmod 阅读全文
posted @ 2016-05-02 10:06 zeopean 阅读(883) 评论(0) 推荐(0)