Centos7安装nexus

137 阅读1分钟

Centos7安装nexus

压缩包方式

  • 下载nexus
  • 解压
  • 配置环境变量
  • 启动nexus
  • 查看密码

下载nexus

nexus官网:www.sonatype.com/nexus-repos…

下载地址: sonatype-download.global.ssl.fastly.net/repository/…

解压

tar zxvf nexus-3.21.1-01-unix.tar.gz

配置环境变量

vim /etc/profile

export NEXUS_HOME=/usr/soft/nexus-3.7.1-02
export PATH=$PATH:$NEXUS_HOME/bin

source /etc/profile

启动nexus

nexus start

访问 http://IP:自定义端口

image.png

查看密码

nexus之前的默认账号密码为admin/admin123,现在已经修改了,密码在解压目录/sonatype-work下的admin.password文件中,cat便可以看到。账号还是admin

image.png

image.png