BrowserShot搭建

本文档详细介绍了如何搭建BrowserShot环境,包括Browsershotes服务器安装、Django与Postgresql配置、ShotServer安装及设置中文显示,以及BrowserShot Factory在Windows上的安装步骤。在完成所有步骤后,需确保能正确访问并使用BrowserShot服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

看了网上各个文章,自己也摸索了很久,才搭建出这套BrowserShot的环境,放在这里大家一起讨论下吧。目前的BrowserShot只能进行静态页面的检查,颇有不足。

 

Browsershots:通过在不同操作系统下用不同浏览器渲染您的网页,然后获取截图的方法来测试网站的浏览器兼容性

 

Browsershotes 服务器安装

安装netpbm
yum install netpbm netpbm-progs
安装Django
svn checkout http://code.djangoproject.com/svn/django/tags/releases/1.0.4 django
cd django
python setup.py install
安装Postgresql
yum install postgresql84 postgresql84-server postgresql-python
yum install python-psycopg2
service postgresql start
createdb shotserver04
createuser eric -W –P
Enter password for new role:123456
Enter it again:123456
Shall the new role be a superuser? (y/n) y
vi /var/lib/pgsql/data/pg_hba.conf #将其中的method全改成md5
service postgresql restart
安装ShotServer
svn checkout http://browsershots.googlecode.com/svn/trunk/shotserver shotserver
cd shotserver
python settings.py install
cd /usr/lib/python2.4/s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值