美文网首页
树莓派上Maven私库Sonatype Nexus折腾记

树莓派上Maven私库Sonatype Nexus折腾记

作者: spt_genius | 来源:发表于2020-04-14 00:05 被阅读0次

Why install it

折腾无极限,树莓派就是用来折腾的。我这里用到的是Pi3B版本的板子,Pi4还没有购买。Nexus3在Pi3上内存不够跑不起来,不知道Pi4是否还能跑,待后续再来折腾。

Require

  1. Sonatype Nexus,下载后最为.tgz文件, 而不是war包。
sonatype_nexus_download.png
  1. Wrapper, 使用版本为学习用的,其他的你懂得。
wrapper_download.png

Install

1.上传文件到树莓派

 $ scp [path by nexus_filename|wrapper_filename] username@host:path

2.解压文件到工作目录下

sonatype_dir.png

3.运行

$ cd nexus-2.9.0-04/bin/jsw

4.运行

$ mkdir linux-armv6l-32

5.拷贝wrapper-linux-armel-32-3.5.25/bin/wrapper 到linux-armv6l-32下

Run

1.运行(这个启动是需要很长时间的... 5分钟吧就)

$ cd nexus-2.9.0-04/bin
$ ./nexus start

2.打开浏览器键入 host:8081/nexus

sonatype_start.png

8081为默认的端口号,要修改端口号可进入$NEXUS_HOME\conf\打开nexus.properties文件,修改application-port属性值就可以了。

默认的用户名和密码:admin/admin123,登录后看到图所示:

sonatype_login.png

Gook Luck!

相关文章

网友评论

      本文标题:树莓派上Maven私库Sonatype Nexus折腾记

      本文链接:https://www.haomeiwen.com/subject/qmhamhtx.html