1.下载nexus
到官方网站下载:http://www.sonatype.org/nexus/archived/
2.通过ftp上传到centos服务器上
最好是上传到/usr/local/这个路径下面,我看网上都是这样操作,具体为什么我也不知道
3.解压文件(切换到nexus所在路径->解压)
cd /usr/local/
tar zxvf nexus-2.12.0-01-bundle.tar.gz
4.修改环境变量
vi /etc/profile
5.在环境变量中增加
export RUN_AS_USER=root
6.保存退出
esc
:wq
7.启动/停止/状态/重启nexus
/usr/local/nexus-2.12.0-01/bin/nexus start
/usr/local/nexus-2.12.0-01/bin/nexus stop
/usr/local/nexus-2.12.0-01/bin/nexus status
/usr/local/nexus-2.12.0-01/bin/nexus restart
8.nexus验证
http://ip:8081/nexus/
账号:admin
密码:admin123