1. 下载安装包
cd /usr/software/
wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.3-02-bundle.tar.gz
2. 解压
mkdir -p /usr/local/nexus
cp nexus-2.14.3-02-bundle.tar.gz /usr/local/nexus/nexus-2.14.3-02-bundle.tar.gz
cd /usr/local/nexus/
tar -zxvf nexus-2.14.3-02-bundle.tar.gz
解压后出现:
nexus-2.14.3-02
sonatype-work
3. 环境变量
vi /etc/profile
export RUN_AS_USER=root
export PATH=.:$JAVA_HOME/bin:$RUN_AS_USER:$PATH
source /etc/profile
4. 启动
./nexus-2.14.3-02/bin/nexus start
5. 配置安全组(aws-ec2)
6. 访问地址:
http://your ip:8081/nexus
---恢复内容结束---