karaf-0.8.1.tar.gz 氧版本
sudo apt-get install openjdk-8-jdk
openjdk 安装
一般命令 :
在/karaf-0.8.1/bin目录下
./karaf 启动
./karaf daemon 后台启用,可以关terminal
ps -ef | grep java 可看到后台启用
./karaf stop 关掉
用gedit 可看下 karaf文件,也能知道有哪些命令使用
什么都没用直接用list ,等同于 bundle:list
list -t 0 可以看哪些bundle
bundle list 显示激活和未激活的bundle
feature:list
exit 退出进入 bundle
查看最新日志 log:tail
设置出错级别log:set
桌面/bin 目录下和 /etc /log
用gedit打开看一看,后面会用到
安装组件
opendaylight-user@root>log:set DEBUG org.opendaylight.openflowplugin
opendaylight-user@root>log:lsit
Command not found: log:lsit
opendaylight-user@root>log:list
Logger │ Level
────────────────────────────────────┼──────
ROOT │ INFO
org.apache.aries.spifly │ WARN
org.apache.karaf.jaas.modules.audit │ INFO
org.apache.sshd │ INFO
org.opendaylight.openflowplugin │ DEBUG
opendaylight-user@root>feature:install odl-openflowplugin-flow-services-rest
opendaylight-user@root>feature:info odl-openflowplugin-flow-services-rest
Feature odl-openflowplugin-flow-services-rest 0.6.1
Description:
OpenDaylight :: Openflow Plugin :: Flow Services :: REST
Details:
OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org
Feature has no configuration
Feature has no configuration files
Feature depends on:
odl-openflowplugin-flow-services 0.6.1
odl-restconf 1.7.1
Feature has no bundles.
Feature has no conditionals.
opendaylight-user@root>feature:info odl-openflowplugin-flow-services
Feature odl-openflowplugin-flow-services 0.6.1
Description:
OpenDaylight :: Openflow Plugin :: Flow Services
Details:
OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org
Feature has no configuration
Feature has no configuration files
Feature depends on:
odl-openflowplugin-app-config-pusher 0.6.1
odl-openflowplugin-app-topology 0.6.1
odl-openflowplugin-app-forwardingrules-manager 0.6.1
odl-openflowplugin-app-reconciliation-framework 0.6.1
Feature has no bundles.
Feature has no conditionals.
opendaylight-user@root>feature:install odl-dluxapps-yangman
opendaylight-user@root>feature:install odl-dluxapps-topology
opendaylight-user@root>feature:install odl-dluxapps-nodes
opendaylight-user@root>feature:install odl-dluxapps-yangui
opendaylight-user@root>feature:install odl-dluxapps-yangutils
opendaylight-user@root>feature:install odl-dluxapps-applications
opendaylight-user@root>odl-mdsal-apidocs
Command not found: odl-mdsal-apidocs
opendaylight-user@root>feature:install odl-mdsal-apidocs
dlux页面网址
http://127.0.0.1:8181/index.html
http://127.0.0.1:8181/apidoc/explorer/18/index.html
http://127.0.0.1:8181/apidoc/explorer/index.html