环境:
必须在 linux 环境下,并且已安装 jdk
下载
-
访问百度网盘链接: https://pan.baidu.com/s/1fHGmQ2jRUAsXyPom2KL8Mw?pwd=0000 提取码: 0000
- 官网下载 Download Archives - Repository Manager 3 (sonatype.com)
部署 :
-
进入目录,创建文件夹,进入文件夹
cd /usr/local/ mkdir nexus cd nexus/
- 将安装包放入nexus文件夹,并解压
tar -zxvf nexus-3.25.1-04-unix.tar.gz
- 启动 nexus,并查看状态.
/usr/local/nexus/nexus-3.25.1-04/bin ./nexus start ./nexus status
- 更改 nexus 端口为7020,并重新启动,访问虚拟机7020
vim /usr/local/nexus/sonatype-work/nexus3/etc/nexus.properties
# Jetty section application-port=7020 # application-host=0.0.0.0 # nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml # nexus-context-path=/ # Nexus section # nexus-edition=nexus-pro-edition # nexus-features=\ # nexus-pro-feature # nexus.hazelcast.discovery.isEnabled=true
/usr/local/nexus/nexus-3.25.1-04/bin/nexus restart