CentOS6上安装Nexus私服,centos6nexus私服


1.下载nexus压缩包:https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.0-01-bundle.zip

2.将压缩包移动至/usr/nexus目录

3.解压压缩包

# unzipnexus-2.14.0-01-bundle.zip

解压出会有nexus-2.14.0-01 sonatype-work两个文件夹

4.进入启动目录

#cd nexus-2.6.0-05/bin/

5.启动nexus

# ./nexus start

查看nexus命令: ./nexus

7.这时候可能会提示

****************************************


WARNING – NOT RECOMMENDED TO RUN AS ROOT


****************************************

If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.

大概意思就是要在环境配置export RUN_AS_USER=root,临时配置

在命令行下输入:

export RUN_AS_USER=root

然后执行,就不会再提示了


./nexus start

也可以在系统里面永久配置

vi /etc/profile 加入export RUN_AS_USER=root

8.启动之后查看日志

# vim /usr/nexus/nexus-2.14.0-01/logs/wrapper.log

发现报错

这个错误其实就是/etc/hosts配置的主机名和/etc/networks文件中HOSTNAME不一致导致的

修改如下:

重启nexus服务

9.主机访问http://10.1.120.139:8081/nexus/#welcome,成功!


10.注参考网址

centos网络配置详解:http://blog.chinaunix.net/uid-30009517-id-4599066.html

nexus私服linux搭建问题

centos基础搭建nexus私服http://www.cnblogs.com/dingyingsi/p/3776557.html

http://blog.youxey.com/archives/293.htmlLinux/CentOS安装maven私有仓库nexus

http://blog.csdn.net/shandian534/article/details/8987349 Nexus 安装与配

http://snowolf.iteye.com/blog/1605811 Maven零散笔记——配置Nexus

http://www.blogjava.net/javalinjx/archive/2013/08/21/403110.html linux系统之上搭建maven 之nexus服务篇

http://wenku.baidu.com/view/a9a0618acc22bcd126ff0c4a.html Nexus入门指南(图文)


相关内容

    暂无相关文章