Linux下用nexus搭建maven私服

一、安装好jdk和maven

二、去https://www.sonatype.com/download-oss-sonatype下载nexus


三、将下载的包上传到服务器,然后解压,输入tar -zxvf nexus-2.14.8-01-bundle.tar.gz -C /usr/local/(最好解压到此路径,防止出现问题)

四、建立软连接:在/usr/local 目录下面输入:sudo ln -s nexus-2.14.8-01/

五、配置环境变量:vi /etc/profile     

       加入:export RUN_AS_USER=root

六、source /etc/profile 刷新刚设置的环境变量

七、启动nexus

        前台启动:cd /usr/local/nexus-2.14.8-01   

                  ./bin/nexus console

     以后台进程启动:./bin/nexus start

        关闭进程:./bin/nexus stop

八、启动完成后进入页面访问http://ip:8081/nexus,默认用户名为admin,密码admin123



猜你喜欢

转载自blog.csdn.net/h2520ny/article/details/80816903