CentOS7下搭建nexus

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

发布了31 篇原创文章 · 获赞 15 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/dongdingzhuo/article/details/78599657