1.双机mysql-5.6.20-winx64.msi,按照提示安装完成。
2.在安装的目录下,比如安装目录是“D:\Program Files\mysql\MySQL Server 5.6”,复制目录下的my-default.ini,重命名为my.ini保存到相同路径下。修改my.ini,
my.ini内容中有提示。我更改的内容是下面这几个参数
# These are com...
爬取网页,对资源文件进行存储时,抛出java.io.IOException: Server returned HTTP response code: 403 for URL 异常
处理方法:
URLConnection openConnection = new URL(href).openConnection();
openConnection.addRequestProperty("User-Agent", Conf...
用phantomjs+selenium截图时,出现
Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/browserlaunchers/Proxies
at org.openqa.selenium.phantomjs.PhantomJSDriverService.createDefa...
在用写爬取网页时,需要程序暂停或者停止。停止可以用强制退出system.exit(0),下面是暂停的主要代码
//false=不暂停 true=暂停
public boolean suspend=false;
public String control = "";
//暂停和继续的公共方法
public boolean setSuspend(boolean suspend) {
...