{"id":288719,"date":"2023-12-05T21:11:53","date_gmt":"2023-12-05T13:11:53","guid":{"rendered":"https:\/\/lrxjmw.cn\/qsjywtllqlxt.html"},"modified":"2023-12-05T21:11:53","modified_gmt":"2023-12-05T13:11:53","slug":"qsjywtllqlxt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/qsjywtllqlxt.html","title":{"rendered":"\u8f7b\u677e\u9a7e\u9a6d\u65e0\u5934\u6d4f\u89c8\u5668\uff01Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5PhantomJS\u6307\u5357"},"content":{"rendered":"
PhantomJS\u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u65e0\u5934\u6d4f\u89c8\u5668\uff0c\u5b83\u80fd\u591f\u6a21\u62df\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u7684\u4ea4\u4e92\u884c\u4e3aphantomjs linux \u5b89\u88c5<\/a><\/strong>\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u8fdb\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5\u3001\u9875\u9762\u622a\u56fe\u3001\u7f51\u7edc\u76d1\u63a7\u7b49\u5de5\u4f5c\u3002\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e0a\u5b89\u88c5PhantomJSlinux\u5e38\u7528\u547d\u4ee4\u7ea2\u65d7linux\u4e0b\u8f7d\uff0c\u8ba9\u4f60\u8f7b\u677e\u9a7e\u9a6d\u65e0\u5934\u6d4f\u89c8\u5668\uff01<\/p>\n 1.\u5b89\u88c5\u4f9d\u8d56\u73af\u5883<\/b><\/p>\n \u5728\u5f00\u59cb\u5b89\u88c5PhantomJS\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684\u4f9d\u8d56\u73af\u5883\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/a>\uff1a<\/p>\n \n 2.\u4e0b\u8f7dPhantomJS\u5b89\u88c5\u5305<\/b><\/p>\n \u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u4e0b\u8f7dPhantomJS\u7684\u5b89\u88c5\u5305\u3002\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n \n 3.\u89e3\u538b\u5b89\u88c5\u5305<\/b><\/p>\n \u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u89e3\u538b\u5b89\u88c5\u5305\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n \n 4.\u79fb\u52a8\u6587\u4ef6<\/b><\/p>\n\nsudo apt-get install -y build-essential chrpath libssl-dev libxft-dev\nsudo apt-get install -y libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev\n<\/pre>\n<\/p>\n
\nwget \n<\/pre>\n<\/p>\n
\ntar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2\n<\/pre>\n<\/p>\n