1. 程式人生 > >ODL碳版本安裝實用教程

ODL碳版本安裝實用教程

轉載自http://www.echojb.com/openapi/2017/07/31/454762.html

Opendaylight Carbon(碳)版本安裝

1.更新源

sudo apt-get update 

sudo apt-get upgrade

2.安裝JDK1.8

sudo apt-get install openjdk-8-jdk可選JDK版本sudo update-alternatives --config java sudo update-alternatives --config javac

3.配置JDK環境變數在/etc/profile檔案末尾新增

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-i386 

export JRE_HOME=${JAVA_HOME}/jre 

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib 

export PATH=${JAVA_HOME}/bin:$PATH

退出編輯使剛剛的修改生效:source /etc/profile

檢查是否配置成功echo ${JAVA_HOME} 

java -version

4.下載ODL

wget https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz

5.解壓

tar -zxvf distribution-karaf-0.6.0-Carbon.tar.gz

6.執行

cd ...自己存放ODL的目錄

./bin/karaf

7.按順序安裝以下特性

feature:install odl-restconf 

feature:install odl-l2switch-switch-ui 

feature:install odl-openflowplugin-flow-services-ui 

feature:install odl-mdsal-apidocs 

feature:install odl-dluxapps-applications

8.輸入網頁訪問,預設使用者名稱密碼為:admin/admin

http://211.80.196.77(自己控制器所在伺服器的IP):8181/index.html