摘要: success: array( 'ToUserName' => 'gh_499', 'FromUserName' => 'o9QyRwDscF68w_iQs7CB8', 'CreateTime' => '1499312107', 'MsgType' => 'event', 'Event' => 'M 阅读全文
posted @ 2017-07-06 11:53 爱冯果 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 添加修改: crontab -e 开启日志: sudo vim /etc/rsyslog.d/50-default.conf cron.* /var/log/cron.log #将cron前面的注释符去掉 重启rsyslogsudo service rsyslog restart 查看日志: vim 阅读全文
posted @ 2017-07-04 11:11 爱冯果 阅读(96) 评论(0) 推荐(0) 编辑
摘要: function getLength(str) { var totalLength = 0; var charCode; for (var i = 0; i < str.length; i++) { charCode = str.charCodeAt(i); if (charCode < 0x007 阅读全文
posted @ 2017-06-16 18:15 爱冯果 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 方法: function output($tip, $fileName = 'success'){ $document = $_SERVER['DOCUMENT_ROOT']; $newPath = '/uploads/'; $filePaht = $document. $newPath; if ( 阅读全文
posted @ 2017-06-13 19:46 爱冯果 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 通过终端安装程序sudo apt-get install xxx时出错:(或者卸载的时候) E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock 阅读全文
posted @ 2017-05-27 08:14 爱冯果 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.安装openssh sudo apt-get install openssh-server 2.linux下查看网卡配置 ifconfig ens33下面的inet addr 此处的ip地址就是你需要用xshell连接的ip 前提是电脑要开启此服务: HomeGroupProvider 阅读全文
posted @ 2017-05-24 00:16 爱冯果 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1.快照(snapshats) 1-1:配置文件 save 900 1 save 300 10 save 60 10000 dbfilename dump.rdb (存储文件) 含义:指定在多长时间内,有多少次更新操作,就将数据同步到数据文件,可以多个条件配合 1-2:可以自己手动存储 save 命 阅读全文
posted @ 2017-05-16 00:01 爱冯果 阅读(183) 评论(0) 推荐(1) 编辑
摘要: linux下find查找命令用法 Linux下find命令在目录结构中搜索文件,并执行指定的操作。Linux下find命令提供了相当多的查找条件,功能很强大。由于find具有强大的功能,所以它的选项也很多,其中大部分选项都值得我们花时间来了解一下。即使系统中含有网络文件系统( NFS),find命令 阅读全文
posted @ 2017-05-15 23:13 爱冯果 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1. 使用curl请求 2.win下开启php.ini extension=php_openssl.dll 3.linux 安装 openssl扩展 阅读全文
posted @ 2017-05-15 16:12 爱冯果 阅读(99) 评论(0) 推荐(0) 编辑
摘要: master配置:(主服务 redis.conf) requirepass masterpassword (配置密码) port 6379 (配置端口) slave配置 requirepass slavepassword (配置密码) port 6380(配置端口) slaveof 127.0.0. 阅读全文
posted @ 2017-05-15 00:33 爱冯果 阅读(110) 评论(0) 推荐(0) 编辑