您的位置:首页 > Web前端 > HTML5

spice-html5部署

2013-10-22 15:55 316 查看
1、安装websockify

git clone https://github.com/kanaka/websockify.git
cd websockify

python setup.py install

(如果报错,可能是python相关的模块缺

yum install python-setuptools

easy_install ****)

./websockify.py port hostip:hostport

此处:

port为本地websockify代理端口

hostip为spice server所在服务器端口

hostport为spice server端口

2、安装spice-html5(根据负载、架构等也可以部署在与websockify不同的主机上)

git clone git://anongit.freedesktop.org/spice/spice-html5

ln -s spice.html index.html

3、安装httpd,并配置

yum install httpd

vi /etc/httpd/conf/httpd.conf

DocumentRoot "*****" (spice-html5目录)

service httpd restart

4、使用

启动firefox

浏览器输入spice-html5所在ip

界面上:

host为websockify所在ip

port为websockify代理端口

enjoy it
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: