红联Linux门户
Linux帮助

Ubuntu16.04下在线安装OpenDaylight控制器

发布时间:2017-03-16 10:56:27来源:blog.csdn.net/belug作者:ai低吟浅唱
1.安装java环境
检查Java是否安装:
java -version
安装OpenJDK
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
 
2.安装maven
sudo apt-get install maven
 
3.在线安装方式
以下操作都是在Ubuntu 16.04之中进行。
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/opendaylight.list"
sudo apt-get update
sudo apt-get install opendaylight
然后输入Y便会自动安装,下载包不到400M,视网速决定安装速度。
可选项
添加软件源金钥到apt
wget -nv http://download.opensuse.org/repositories/home:akshitajha/xUbuntu_16.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update
安装完毕,可以通过以下这些指令来启动或者判断其是否启动:
$ sudo systemctl start opendaylight
$ sudo systemctl is-active opendaylight
active
$ ssh -p 8101 karaf@localhost
# password "karaf"
 
4.安装功能组件
opendaylight-user@root>feature:list -i
Ubuntu16.04下在线安装OpenDaylight控制器
opendaylight-user@root>feature:install odl-restconf
opendaylight-user@root>feature:install odl-l2switch-switch-ui
opendaylight-user@root>feature:install odl-openflowplugin-flow-services-ui
opendaylight-user@root>feature:install odl-mdsal-apidocs
opendaylight-user@root>feature:install odl-dlux-core
opendaylight-user@root>feature:install odl-dlux-node
opendaylight-user@root>feature:install odl-dlux-yangui
Ubuntu16.04下在线安装OpenDaylight控制器
 
5.登陆管理WEB UI
http://192.168.234.151:8181/index.html
用户名和密码都是admin
Ubuntu16.04下在线安装OpenDaylight控制器
Ubuntu16.04下在线安装OpenDaylight控制器
 
6.如果登陆异常:
可以通过logout退出karaf平台,进入odl主目录,删除data目录,执行./karaf clean,再次重新执行./karaf程序和加载相应组件。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/29223.html