摘要: apt-get install build-essential或者yum install make gcc gcd-c++ 阅读全文
posted @ 2018-02-15 17:56 月上须臾 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 在控制台调试: scrapy shell [url] scrapy startproject 项目名称 scrapy genspider 蜘蛛名称 目标网站(example.com) File->setting->Project Interpretor->add Local from scrapy 阅读全文
posted @ 2018-01-30 10:06 月上须臾 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT 阅读全文
posted @ 2018-01-30 09:46 月上须臾 阅读(140) 评论(0) 推荐(0) 编辑
摘要: mysql -u root -p --ssl-mode=REQUIRED 阅读全文
posted @ 2018-01-26 17:39 月上须臾 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 按照网上之前版本的操作,将my.ini中的skip-grant-tables注释去掉,然后在命令行中以mysql -u root -p可以直接进入,但是执行 mysql> update mysql.user set password=password('password') where user=' 阅读全文
posted @ 2018-01-26 10:15 月上须臾 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1.停止服务:停止MySQL服务; 1 2 3 4 2.跳过验证:修改MySQL安装目录下的my.ini配置文件,使登录时跳过权限检查; 1 2 3 4 3.修改密码:启动MySQL服务,登录MySQL,此时提示输入密码,输入任意密码回车即可进入MySQL。 1 2 然后通过SQL语句修改root用 阅读全文
posted @ 2018-01-26 09:57 月上须臾 阅读(8640) 评论(0) 推荐(0) 编辑
摘要: 1. 创建scrapy项目步骤: scrapy startproject ArticleSpider scrapy genspider jobble blog.jobbole.com 2. 启动:scrapy crawl jobble 3. 设置默认过滤规则:settings.py文件中ROBOTS 阅读全文
posted @ 2018-01-25 22:14 月上须臾 阅读(165) 评论(0) 推荐(0) 编辑
摘要: bzip2 -d gcc-4.1.0.tar.bz2 上面解压完之后执行下面的命令。tar -xvf gcc-4.1.0.tar 或 tar -xvf *.tar解完之后会出现多一个文件夹 gcc-4.1.0 阅读全文
posted @ 2018-01-25 11:57 月上须臾 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: ^表示以特定字符开头,在[]中表示非; $表示以特定字符结束; .表示任意字符; *表示前面字符出现任意次; +表示前面字符至少出现一次; ?最小匹配;(默认贪婪匹配,从后往前匹配) {}表示前面字符出现的次数; ()用于提取字符串; []用于限制匹配的字符,即匹配[]中的字符,且在[]内的特殊字符 阅读全文
posted @ 2018-01-24 15:19 月上须臾 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/vijayfly/p/5711962.html 阅读全文
posted @ 2018-01-21 23:07 月上须臾 阅读(76) 评论(0) 推荐(0) 编辑