解决搭建pyspider报错:Could not find phantomjs

搭建pyspider服务后,启动时出现数据库错误:
mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (us
经检查,数据库密码正确,命令行可以正常登录。
查看日志,发现前面还有报错 Could not find phantomjs
stackoverflow有相同的问题, 点击查看链接

将解决方法整理如下(只有CentOS亲测OK,其实未测试):

Ubuntu操作系统可以直接apt安装:sudo apt-get install phantomjs

Mac操作系统需要先安装npm
brew install npm
npm install -g phantomjs

CentOS操作系统也需要先安装npm
yum install npm
npm install phantomjs-prebuilt
npm install phantomjs

猜你喜欢

转载自blog.csdn.net/dreamstone_xiaoqw/article/details/79805455
今日推荐