nexus私服安装

一、搭建nexus私服。当前服务器版本是jdk1.8    。

nexus安装包下载:http://www.sonatype.org/nexus/archived

先是下载目前最新的版本

Nexus 2.11.1-01 2014-12-22
 

有提供zip和tar.gz格式,随便下哪种都可以。

二、解压之后会有两个文件夹,nexus-2.11.1-01和sonatype-work,我们进入第一个文件夹的bin目录来启动nexus 。

1、进入启动目录,启动

cd /home/nexus/nexus/bin
./nexus start

2、这时候提示:

****************************************
WARNING – NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.

大概意思就是要在环境配置export RUN_AS_USER=root,临时配置

在命令行下输入:

export RUN_AS_USER=root

然后执行,就不会再提示了
./nexus start

3、也可以在系统里面永久配置

vi /etc/profile  加入export RUN_AS_USER=root

原文地址:https://www.cnblogs.com/chengJAVA/p/4797372.html