nexus 中央仓库
下载地址:http://www.sonatype.org/nexus/archived
下载最新版本
mkdir -p /opt/local/nexus
tar zxvf nexus-2.11.1-01-bundle.tar.gz
cp nexus-2.11.1-01-bundle /opt/local/nexus
配置环境变量
vi /etc/profile
在最下面加入
export RUN_AS_USER=root
使设置生效
source /etc/profile
进入 /opt/local/nexus/bin 目录
启动 ./nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Starting Nexus OSS...
Started Nexus OSS.
访问 http:// myip:8081/nexus
这里为配置文件,可修改端口,限制IP等
nexus-work=${bundleBasedir}/../sonatype-work/nexus 修改jar 包存放路径
conf/nexus.properties