看了网上各个文章,自己也摸索了很久,才搭建出这套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

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

被折叠的 条评论
为什么被折叠?



