linux-tutorial/codes/linux/soft/nexus-install.sh

19 lines
654 B
Bash
Raw Normal View History

2018-09-29 17:27:31 +08:00
#!/usr/bin/env bash
###################################################################################
# 安装 sonatype nexus(用于搭建 maven 私服) 脚本
2019-05-07 14:29:16 +08:00
# @system: 适用于所有 linux 发行版本。
2018-09-29 17:27:31 +08:00
# sonatype nexus 会被安装到 /opt/maven 路径。
# 注意sonatype nexus 要求必须先安装 JDK
2019-05-07 14:29:16 +08:00
# @author: Zhang Peng
2018-09-29 17:27:31 +08:00
###################################################################################
echo -e "\n>>>>>>>>> install sonatype nexus"
mkdir -p /opt/maven
cd /opt/maven
version=3.13.0-01
wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz
tar -zxf nexus-unix.tar.gz