spice-html5部署

来源:互联网 发布:淘宝零食店排行 编辑:程序博客网 时间:2024/05/16 02:04

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


原创粉丝点击