05 2017 档案
正则表达式
摘要:正则表达式 2017-5-11 语法: + 号 代表前面的字符串可以至少出现一次 例如:kin+mos 可以匹配出 kinkinkink+mos * 号 代表前面的字符串可以不出现或出现n次 例如:kin*mos 可以匹配出 kinkinkinmos ? 号 代表前面的字符最多只能出现一次 例如:k 阅读全文
posted @ 2017-05-12 11:07 轻浮不韪 阅读(160) 评论(0) 推荐(0)
elasticsearch的安装配置以及初步使用
摘要:elasticsearch 是一个全文搜索引擎,支持分布式。搜索速度非常快速。 本文主要进行了 elasticsearch 的安装 配置 以及初步的使用功能; -- 下载 放到 /data/soft 目录 wget https://download.elasticsearch.org/elastic 阅读全文
posted @ 2017-05-09 11:56 轻浮不韪 阅读(206) 评论(0) 推荐(0)
notepad++插件
摘要:最近发现,根据大神的说法,找到了两个 notepad++的两个插件。可以在里面格式化 json数据以及xml数据 ,听起来很酷。 xml插件 在notepad++里面的插件管理中 plugin manager 中找到 xml tools 勾选到, install 会提示 是否更新 plugin ma 阅读全文
posted @ 2017-05-09 11:56 轻浮不韪 阅读(189) 评论(0) 推荐(0)
nginx 反向代理解决ajax跨域问题
摘要:~~写了段ajax 去请求接口数据的js ,无奈发现有跨域问题。 <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" / 阅读全文
posted @ 2017-05-09 11:55 轻浮不韪 阅读(336) 评论(0) 推荐(0)
React入门
摘要:http://www.ruanyifeng.com/blog/2015/03/react.html ReactDOM.render 是React的最基本的方法,用于将模板转为HTML语言,并插入制定的DOM节点中。 <!DOCTYPE html> <html> <head> <scriptsrc=" 阅读全文
posted @ 2017-05-09 11:44 轻浮不韪 阅读(147) 评论(0) 推荐(0)
NodeJS
摘要:2015-8-22 www.npmjs.com nodejs 社区 nodejs.org 官网 github.com stackoverflow.com 提问的 www.npmjs.com nodejs 社区 nodejs.org 官网 github.com stackoverflow.com 提问 阅读全文
posted @ 2017-05-09 11:44 轻浮不韪 阅读(197) 评论(0) 推荐(0)
centos
摘要:http://www.centoscn.com/image-text/install/2014/1209/4281.html 启用ssh http://blog.sina.com.cn/s/blog_715391ef0102v3ev.html 如果安装centos7 需要选择centos 64!!! 阅读全文
posted @ 2017-05-09 11:43 轻浮不韪 阅读(162) 评论(0) 推荐(0)
HTML基础
摘要:<pre></pre>标签是预留格式文本 会保留标签内的文字显示格式 <address></address> html中写地址 标签的 title 属性 ,当把鼠标移到缩略语上,title可用于展示 title 内容 <!--more--> <blockquote></blockquote>这个是长 阅读全文
posted @ 2017-05-09 11:43 轻浮不韪 阅读(113) 评论(0) 推荐(0)
mysql 主从服务器配置
摘要:当遇到磁盘读写的事务锁 导致的系统读写能力下降的问题,可以使用主从读写分离的模式进行优化。不过读写分离会导致数据读取的延时性。 mysql的主从复制 主要依赖于数据库的二级制文件进行数据库的同步功能。 参考链接: http://blog.csdn.net/cutesource/article/det 阅读全文
posted @ 2017-05-09 11:42 轻浮不韪 阅读(181) 评论(0) 推荐(0)
Linux命令
摘要:netstat -ntlp 查看端口占用 top 监控性能 (mem 是内存占用情况) free -m 查看内存情况 rm -rf 删除文件夹(递归删除) reboot 重启机器 shutdown 关闭机器<!--more--> mkdir 创建目录 cp 复制文件 pwd 显示当前目录 cat 文 阅读全文
posted @ 2017-05-09 11:42 轻浮不韪 阅读(60) 评论(0) 推荐(0)
Kali
摘要:安装kali双系统 http://www.myhack58.com/Article/48/65/2015/62627.htm 安装过程中,若出现无法挂载光盘,可以拔掉U盘,换个USB插口再试!!!!!!!!! http://www.ichunqiu.com/search/kali http://bl 阅读全文
posted @ 2017-05-09 11:41 轻浮不韪 阅读(401) 评论(0) 推荐(0)
Python进阶
摘要:2015.8.5 慕课网Python进阶学习: 函数式编程(functional): 1.python不是纯函数式编程:允许存在变量 2.支持高阶函数:函数可作为变量传入 3.支持闭包:有了闭包就能返回函数 4.有限度的支持匿名函数 高阶函数:能接收函数作为参数的函数。 def add(x,y,f) 阅读全文
posted @ 2017-05-09 11:40 轻浮不韪 阅读(181) 评论(0) 推荐(0)
Python入门
摘要:2015.7.31 慕课网 python 安装配置 安装之后配置环境变量(最后加入安装的python位置如:D:\Python),后在命令提示符中输入python进入python交互式环境, 也可以用Notepad编写python文件代码(.py),使用cd进入该文件路径,输入python hell 阅读全文
posted @ 2017-05-09 11:39 轻浮不韪 阅读(209) 评论(0) 推荐(0)
性能测试工具
摘要:2015.8.7 横向扩展能力 数据库的优化 尽量让一台机器能够承载更多的用户请求 性能测试就是通过技术的手段模拟大量用户同时访问被测应用,观察记录和分析系统的各项性能指标的过程。 性能测试的目标是评估系统的性能瓶颈,预测系统的最大用户负载能力 模拟大量并发用户 监控系统负载参数分析系统瓶颈 平均响 阅读全文
posted @ 2017-05-09 11:38 轻浮不韪 阅读(243) 评论(0) 推荐(0)
sphinx搜索
摘要:2015.8.13 使用Mysql实现增加索引以实现加快数据搜索 1.增加索引,当你想对某个字段进行like查询或是关联查询时,添加该字段的索引 或是在phpMyAdmin中进行索引设置 ALTER TABLE `ecs_goods` ADD INDEX(`goods_sn`); 2.Sphinx实 阅读全文
posted @ 2017-05-09 11:37 轻浮不韪 阅读(201) 评论(0) 推荐(0)
页面静态化
摘要:2015.8.15 关于优化页面响应时间 方法: 1.动态页面静态化 2.优化数据库 3.使用负载均衡 4.使用缓存 等 动态页面静态化 如果页面中的一些内容不经常改动,动态页面静态化是非常有效的加速方法。 实质:生成静态的HTML文件 好处:减少服务器脚本的计算时间,降低服务器的响应时间,减少服务 阅读全文
posted @ 2017-05-09 11:36 轻浮不韪 阅读(214) 评论(0) 推荐(0)
PHP API接口
摘要:2015.8.18 PHP生成JSON数据 json_encode($value) 方法 (response.php和testapi.php) 通信标准格式: code 状态码 message 提示信息 data返回数据 json如何封装通信数据方法 Response类 <?php classRes 阅读全文
posted @ 2017-05-09 11:35 轻浮不韪 阅读(1579) 评论(0) 推荐(0)
PHP性能优化
摘要:2015.8.17 解决方向: PHP语言级的性能优化 PHP周边问题的性能优化 PHP语言自身分析、优化(PHP底层 C层面上的) PHP语言级性能优化 优化点:少些代码,多用PHP自身能力 性能问题:自写代码冗余较多,可读性不佳,并且性能低<!--more--> 原因:PHP代码需要编译解析为底 阅读全文
posted @ 2017-05-09 11:35 轻浮不韪 阅读(140) 评论(0) 推荐(0)
微信开发
摘要:2015.8.29 新浪云部署thinkphp网站: 1.创建应用,使用thinkphp框架 2.使用svn导出sae上的代码,并修改,上传便可 3.使用数据库管理PHPMyAdmin,导入数据 编辑模式 开发者模式 <!--more--> 需要在开发者中心关闭开发者模式才能进入编辑模式 开发者模式 阅读全文
posted @ 2017-05-09 11:34 轻浮不韪 阅读(111) 评论(0) 推荐(0)
YII安装和使用
摘要:一、下载安装 http://www.phperz.com/article/14/1211/40633.html 解决证书错误 http://my.oschina.net/yearnfar/blog/346727 http://www.yiichina.com/tutorial/324 http:// 阅读全文
posted @ 2017-05-09 11:33 轻浮不韪 阅读(377) 评论(0) 推荐(0)
Memcache、Memcached 和Redis缓存技术
摘要:2015.8.18 在centos 7虚拟机中安装配置 Memcache和mamcached 方法一(简单,但是未试验) http://www.blogjava.net/nkjava/archive/2015/04/25/centos7_install_memcached.html 方法一(简单,但 阅读全文
posted @ 2017-05-09 11:33 轻浮不韪 阅读(626) 评论(0) 推荐(0)
phalcon
摘要:http://zlkb.net/140.html sudo yum install php-devel pcre-devel gcc make yum install gcc libtool make git #因为安装的是minimal的系统,所以很多默认的工具是没有的 yum install p 阅读全文
posted @ 2017-05-09 11:32 轻浮不韪 阅读(141) 评论(0) 推荐(0)
WorkerMan
摘要:中文手册 http://doc3.workerman.net/ svn安装 http://www.cnblogs.com/jiqing9006/p/3370627.html <!--more--> http://blog.csdn.net/fengyily/article/details/36649 阅读全文
posted @ 2017-05-09 11:32 轻浮不韪 阅读(356) 评论(0) 推荐(0)
Laravel
摘要:基于centos 安装composer 进入你的安装包文件保存目录 /usr/local/src 下载composer文件(若不成功,多试几次) curl -sS https://getcomposer.org/installer | php<!--more--> 将composer加入到环境变量中 阅读全文
posted @ 2017-05-09 11:31 轻浮不韪 阅读(84) 评论(0) 推荐(0)
lnmp集成环境的安装
摘要:http://lnmp.org/install.htm 解压 文件夹 tar zxvf ln cd ln ./install 重启 php /etc/init.d/php-fpm start <!--more--> 重启nginx nginx : kill nginx进程ID,再/usr/local 阅读全文
posted @ 2017-05-09 11:31 轻浮不韪 阅读(88) 评论(0) 推荐(0)
Redis服务端
摘要:一、安装过程 1、安装redis 最新版本3.0.5 http://download.redis.io/releases/redis-3.0.5.tar.gz 安装在/usr/local/redis目录 [root@localhost local]# mkdir /usr/local/redis [ 阅读全文
posted @ 2017-05-09 11:30 轻浮不韪 阅读(116) 评论(0) 推荐(0)
Swoole
摘要:编译安装 swoole 下载 https://github.com/swoole/swoole-src unzip swoole-src-master.zip cd swoole-src-master /usr/local/php/bin/phpize # phpize的目录 ./configure 阅读全文
posted @ 2017-05-09 11:29 轻浮不韪 阅读(111) 评论(0) 推荐(0)
gearman
摘要:任务队列 安装配置 http://gearman.org https://launchpad.net/gearmand 下载最新的版本 gearmand-X.Y.tar.gz 把gearmand-1.1.12.tar.gz放到 /root/tools 下面去 <!--more--> yum inst 阅读全文
posted @ 2017-05-09 11:29 轻浮不韪 阅读(191) 评论(0) 推荐(0)
PHP基础学习
摘要:什么是php Hypertext preprocessor 是一种用来开发动态网站的服务器脚本语言 显示客户端和服务器端IP echo $_SERVER['REMOTE_ADDR'] // 客户端 echo $_SERVER['SERVER_ADDR'] //服务器端 php 需要开启短标签才能使用 阅读全文
posted @ 2017-05-09 11:28 轻浮不韪 阅读(106) 评论(0) 推荐(0)
函数式编程
摘要:函数式编程 函数式编程的特点: 1.函数可以与其他数据类型一样进行传递赋值; 2.只用表达式,不用语句,每一步都是单纯的运算,而且都有返回值,函数式编程的动机是,为了处理运算,不考虑系统的读写,减少不必要的读写操作; 3.函数式编程,不能存在函数内部和外部的互动,函数需要保持独立,不能修改外部变量的 阅读全文
posted @ 2017-05-09 11:25 轻浮不韪 阅读(482) 评论(0) 推荐(0)