环境:ubuntu 16.04html
前提:已经成功安装了JDK和Ecplisejava
一、安装floodlightpython
apt-get install build-essential default-jdk ant python-dev git clone git://github.com/floodlight/floodlight.git cd floodlight ant ant eclipse (使得floodlight能在eclipse中运行,不然没法导入到eclipse)
二、将floodlight导入eclipse git
打开 eclipse,建立新的 workspace。 github
从菜单选择 File -> Import -> General -> Existing Projects into Workspac。点击下一步。 web
从 Select root directory 里面,找到 floodlight 所在目录。导入后勾上 Floodlight,点击Finish。 ubuntu
三、运行floodlightbash
将floodlight的Eclipse导入eclipse后,会生成一个eclipse工程,打开floodlight工程eclipse
找到 src/java/main -> net.floodlightcontroller.core -> Main.java 文件ui
右键单击 “Run As” ,选择 “Java Application”,而后选择“Floodlight-Default-Conf”,点击“OK”,floodlight就开始运行了
运行Floodlight后能够经过登陆http://localhost:8080/ui/index.html使用Floodlight提供的web管理界面查看里面的信息,
包括交换机、主机等等,由于咱们没有接什么设备,页面没有什么信息。