wyquery是github上的一个开源项目,用于爬取乌云的漏洞信息
https://github.com/LubyRuffy/wyquery
本文记录了搭建wyquery环境的过程。
1、安装ruby
http://my.oschina.net/duolus/blog/348353
gem install bundler
2、下载wyquery代码并解压
wget https://github.com/LubyRuffy/wyquery/archive/master.zip
unzip master
3、安装并配置mysql数据库
安装:http://jingyan.baidu.com/article/fec7a1e5f8d3201190b4e782.html
yum install mysql-server
创建数据库 create database wyquery character set utf8;
修改root密码: http://jingyan.baidu.com/article/0320e2c198ad5f1b87507bc8.html
UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';
FLUSH PRIVILEGES;
mysql开启远程访问: http://jingyan.baidu.com/article/046a7b3ed85f3ef9c27fa9dc.html
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;