opendaylight的安装

1、下载opendaylight的controller代码:

git clone http://git.opendaylight.org/gerrit/p/controller.git

进入一下目录:

[root@chenpiaoping ~]# cd controller/opendaylight/controller.bak/opendaylight/distribution/opendaylight

把该目录下的maven拷贝到/usr/local目录下

[root@chenpiaoping opendaylight]# cp -r apache-maven-3.1.0/ /usr/local/
2、安装Maven:

配置环境变量

[root@chenpiaoping opendaylight]# vim /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64
export MVN_HOME=/usr/local/apache-maven-3.1.0
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$JAVA_HOME/bin:$MVN_HOME/bin:$PATH

[root@chenpiaoping opendaylight]# source /etc/profile

3、编译controller

[root@chenpiaoping opendaylight]# mvn clean install

4、启动controller

[root@chenpiaoping opendaylight]#sh controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-0.1.0-SNAPSHOT-osgipackage/opendaylight/run.sh

5、登录opendaylight web页面

在浏览器里输入:http://localhost:8080



本文出自 “陈漂评的博客” 博客,转载请与作者联系!

你可能感兴趣的:(OpenDaylight,ontroller)