叽叽喳喳,嘻嘻哈哈

导航

02 2017 档案

nginx配置【转】
摘要:转自:http://www.ha97.com/5194.html #定义Nginx运行的用户和用户组user www www; #nginx进程数,建议设置为等于CPU总核心数。worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | war 阅读全文

posted @ 2017-02-17 17:54 叽叽喳喳,嘻嘻哈哈 阅读(139) 评论(0) 推荐(0)

安装nginx
摘要:ubuntu 16.04 安装nginx 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 程序文件在/usr/sbin/nginx 日志放在了/var/log/nginx中 并已经在/etc/init.d/下创建了启动脚本 阅读全文

posted @ 2017-02-17 17:45 叽叽喳喳,嘻嘻哈哈 阅读(116) 评论(0) 推荐(0)

scrapy流程图
摘要: 阅读全文

posted @ 2017-02-17 10:10 叽叽喳喳,嘻嘻哈哈 阅读(270) 评论(0) 推荐(0)

ubuntu 16.04 完整安装 phantomjs
摘要:摘自 stackoverflow sudo apt-get install nodejssudo apt-get install nodejs-legacysudo apt-get install npmsudo npm -g install phantomjs-prebuilt 阅读全文

posted @ 2017-02-07 14:03 叽叽喳喳,嘻嘻哈哈 阅读(246) 评论(0) 推荐(0)

urllib 和urllib2 模块使用简例
摘要:一、最简单的使用 import urllib,urllib2 response = urllib2.urlopen("https://www.baidu.com") print response.read() 二、构造Request对象 request = urllib2.Request("http 阅读全文

posted @ 2017-02-06 13:45 叽叽喳喳,嘻嘻哈哈 阅读(176) 评论(0) 推荐(0)