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