[root@centos7 ~]# uname -a
Linux centos7 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
一、安装java
[root@centos7 ~]# yum install java
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
软件包 1:java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64 已安装并且是最新版本
无须任何处理
[root@centos7 ~]# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
[root@centos7 ~]#
二、下载Floodlight
yum install git
[root@centos7 ~]# git clone git://github.com/floodlight/floodlight.git
正克隆到 'floodlight'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (4/4), done.
接收对象中: 6% (3393/52824), 3.23 MiB | 1.61 MiB/s s
#安装图行界面,方便后期做实验
yum groupinstall "GNOME Desktop"
systemctl set-default multi-user.target //设置成命令模式
systemctl set-default graphical.target
三、升级Floodlight
floodlight$ cd ~/floodlight
floodlight$ git pull origin master
floodlight$ git submodule init
floodlight$ git submodule update
四、出现编译错误
Buildfile: /home/floodlight/floodlight/build.xml
[taskdef] Could not load definitions from resource tasks.properties. It could not be found.
yum install maven
mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building floodlight 1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/