安装
tar -xzvf nexus-2.14.3-02-bundle.tar.gz
cd /usr/local/src
ln -s /letv/soft/nexus-2.14.3-02 nexus2
运行
cd /usr/local/nexus/src
./bin/nexus console
./bin/nexus start
vim /etc/profile
export RUN_AS_USER=root
开机启动
cd /usr/local/src/nexus2/bin
cp nexus /etc/init.d/nexus2
chmod 755 /etc/init.d/nexus2
chown root.root /etc/init.d/nexus2
cd /etc/init.d/
vi nexus2
NEXUS_HOME="/usr/local/src/nexus2"
chkconfig --add nexus2
chkconfig --levels 345 nexus2 on
./nexus2 start 可用
service nexus2 start 不可用
修改配置
cd /usr/local/src/nexus2/conf
vim nexus.properties
application-port=8082 改个端口
登录
http://10.127.96.124:8082/nexus
账号密码
admin
admin123
存储路径
查找方法
cd /usr/local/src/nexus2/conf
nexus-work=${bundleBasedir}/../sonatype-work/nexus
上面这个就是配置路径方法
/letv/soft/sonatype-work/nexus/storage/central
因为我加压缩到letv目录,所以按照配置我的存储文件在上一层