1、安装websockify
git clone https://gith
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