-
创建文件夹并更新系统
-
root@yyq:~# mkdir opendaylight
root@yyq:~# ls
Desktop Downloads Music Pictures snap test01
Documents mininet opendaylight Public Templates Videos
root@yyq:~# cd opendaylight/
root@yyq:~/opendaylight# apt update
-
配置jdk环境
-
安装jdk-8
-
root@yyq:~/opendaylight# apt install openjdk-8-jdk(有的可能会出现乱码的情况也没事,继续回车键就好)
-
配置jdk环境
- (1)查看jdk路径
-
root@yyq:~/opendaylight# ls /usr/lib/jvm/
java-1.8.0-openjdk-amd64 java-8-openjdk-amd64
-
(2)编辑/etc/profile文件,在文件最后添加如下内容,然后保存退出
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- export JRE_HOME=${JAVA_HOME}/jre
- export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
- export PATH=${JAVA_HOME}/bin:$PATH
- (3)执行source使环境生效
- root@yyq:~/opendaylight# source /etc/profile
-
测试jdk环境
-
root@yyq:~# java -version
openjdk version "1.8.0_402"
OpenJDK Runtime Environment (build 1.8.0_402-8u402-ga-2ubuntu1~22.04-b06)
-
OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
-
安装opendaylight
-
下载opendaylight
-
解压opendaylight包
-
root@yyq:~/opendaylight# tar -zxvf distribution-karaf-0.6.4-Carbon.tar.gz
root@yyq:~/opendaylight# ls
distribution-karaf-0.6.4-Carbon distribution-karaf-0.6.4-Carbon.tar.gz(有这两个包说明解压成功)
-
最后一步进行安装
-
root@yyq:~/opendaylight# cd distribution-karaf-0.6.4-Carbon/
root@yyq:~/opendaylight/distribution-karaf-0.6.4-Carbon# cd bin/
root@yyq:~/opendaylight/distribution-karaf-0.6.4-Carbon/bin# . karaf
-
(最后成功的界面就是这样子啦)
Opendaylight安装部署 一次成功
最新推荐文章于 2024-06-13 14:35:07 发布