摘要: SSH 使用错误,其实我们关掉HTTPS就好了 npm config set strict-ssl false 或者 npm config set registry=”http://registry.npmjs.org/” 阅读全文
posted @ 2016-02-03 15:20 linksgo2011 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 1.通过config命令npmconfigsetregistryhttp://registry.cnpmjs.orgnpminfounderscore(如果上面配置正确这个命令会有字符串response)2.命令行指定npm--registryhttp://registry.cnpmjs.orgin... 阅读全文
posted @ 2016-01-03 12:01 linksgo2011 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install nodejssudo apt-get install npmsudo apt-get install nodejs-legacysudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updates... 阅读全文
posted @ 2016-01-03 11:55 linksgo2011 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 以后自己笔记本就使用ubuntu 作为自己的开发环境了,以后尽量换个mac1、安装搜狗输入法http://jingyan.baidu.com/article/a3aad71aa1abe7b1fa009641.html2、安装 chromewget https://dl.google.com/linu... 阅读全文
posted @ 2016-01-02 22:19 linksgo2011 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1、首先需要了解几个测试工具 a、前端使用 pagespeed b、服务器响应测试使用ab c、数据库使用mysqlslap 以及 explan的sql优化工具mysqlslap -a -c 500 -i 10 -uroot -p1234562、前端优化一些方法 a、减少http请求,使用图... 阅读全文
posted @ 2016-01-02 12:20 linksgo2011 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1、安装测试套件apt-get install apache2-utils 2、ab 命令说明Usage: ab [options] [http[s]://]hostname[:port]/pathOptions are://总的请求数 -n requests Number of request... 阅读全文
posted @ 2016-01-02 11:59 linksgo2011 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 参考网址http://www.centoscn.com/nginx/2014/0509/2947.html1、基于子目录的配置方式location /name/ { proxy_pass http://127.0.0.1/remote/;}2、基于域名的配置TODO 阅读全文
posted @ 2015-12-31 18:33 linksgo2011 阅读(422) 评论(0) 推荐(0) 编辑
摘要: http://c.biancheng.net/cpp/view/6994.html 阅读全文
posted @ 2015-12-31 18:26 linksgo2011 阅读(191) 评论(0) 推荐(0) 编辑
摘要: # @author ln printf.cn# ubuntu nginx mysql php自动配置脚本conf_file = "# You may add here your# server {# ...# }# statements for each of your virtual hosts ... 阅读全文
posted @ 2015-12-31 16:55 linksgo2011 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1、时间格式化等方法推荐使用 moment.js 的库文件3、模板、循环、MAP等方法使用underscode.js 的方法4、表单序列化成JSON $.fn.serializeJson = function() { var serializeObj = {}; v... 阅读全文
posted @ 2015-10-21 14:39 linksgo2011 阅读(1895) 评论(1) 推荐(2) 编辑