https://www.cnblogs.com/bigberg/p/7641145.html
阿里云maven仓库地址:
http://maven.aliyun.com/nexus/content/groups/public/
官方仓库地址:
https://repo.spring.io/libs-milestone
环境:centos7.5
1、准备压缩包
nexus-3.13.0-01-unix.tar.gz
2、解压缩包到/usr/local/
tar -xzf /root/nexus-3.13.0-01-unix.tar.gz -C /usr/local/
3、创建软链接
ln -s /usr/local/nexus-3.13.0-01/ /usr/local/nexus
4、把nexus安装成服务
vim /lib/systemd/system/nexusd.service
[Unit]
Description=nexus service
[Service]
Type=forking
LimitNOFILE=65536
ExecStart=/usr/local/nexus/bin/nexus start
ExecReload=/usr/local/nexus/bin/nexus restart
ExecStop=/usr/local/nexus/bin/nexus stop
Restart=on-failure
[Install]
WantedBy=multi-user.target
chmod 755 nexusd.service
5、配置nexus
vim /usr/local/nexus/etc/nexus-default.properties
更改默认端8081为80: application-port=80
更改项目莫惹路径 / 为 /nexus: nexus-context-path=/nexus
6、启动nexus服务并设置开机自启动
systemctl enable nexusd
systemctl start nexusd
7、打开网页(http://192.168.0.17/nexus/)
默认登录用户名 admin 密码:admin123