nexus2安装maven仓库

安装
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目录,所以按照配置我的存储文件在上一层
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值