function install_supervisor {
	easy_install supervisor
	rm -rf /home/work/bin/supervisor
	mkdir -p /home/work/bin/
	wget http://192.168.3.11/download/supervisor/supervisor.tgz || exit
	tar xf supervisor.tgz -C /home/work/bin/
	local_ip=`cat /etc/sysconfig/network-scripts/ifcfg-eth0 |grep IPADDR |awk -F= '{print $2}'`
	cd /home/work/bin/supervisor/ && \
	  sed -i "s/LOCAL_IP_ADDR/$local_ip/g" supervisord.conf

	#supervisord -c supervisord.conf
	#echo 'cd /home/work/bin/supervisor/ && supervisord -c supervisord.conf' >> /etc/rc.local
}

#install_jdk