Skip to content

Commit 68e9bb7

Browse files
committed
🔖 Nexus3 安装脚本
1 parent b921bce commit 68e9bb7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
###################################################################################
4+
# 安装 sonatype nexus(用于搭建 maven 私服) 脚本
5+
# 适用于所有 linux 发行版本。
6+
# sonatype nexus 会被安装到 /opt/maven 路径。
7+
# 注意:sonatype nexus 要求必须先安装 JDK
8+
# Author: Zhang Peng
9+
###################################################################################
10+
11+
echo -e "\n>>>>>>>>> install sonatype nexus"
12+
13+
mkdir -p /opt/maven
14+
cd /opt/maven
15+
16+
version=3.13.0-01
17+
wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz
18+
tar -zxf nexus-unix.tar.gz

0 commit comments

Comments
 (0)