1.安装jdk及maven

jdk从oracle官网下载jdk-8u192-linux-x64.tar.gz,下载链接为:https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-linux-x64.tar.gz?AuthParam=1542093812_8091ed1d3dcb2e84270c10f90132b5de

apt-get install maven

2.下载OpenDaylight并安装配置

下载地址:https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.6.4-Carbon/distribution-karaf-0.6.4-Carbon.tar.gz

解压:sudo tar -zxvf distribution-karaf-0.6.4-Carbon.tar.gz

编辑ip:

user@ubuntu:~$ cd distribution-karaf-0.6.4-Carbon/

user@ubuntu:~/distribution-karaf-0.6.4-Carbon$ sudo vim etc/org.apache.karaf.management.cfg

rmiRegistryHost = 127.0.0.1

rmiServerHost = 127.0.0.1

3.运行并安装

user@ubuntu:~/distribution-karaf-0.6.4-Carbon$ sudo ./bin/karaf

opendaylight-user@root>

进入界面后,在其命令行中,依次安装:

opendaylight-user@root>feature:install odl-restconf odl-l2switch-switch-ui odl-openflowplugin-flow-services-ui odl-mdsal-apidocs odl-dluxapps-applications odl-faas-all

4.web访问

http://ip:8181/index.html

用户名、密码:admin