`

【转】 nexus私服linux搭建问题

阅读更多

前提是该服务器已经配置好了JDK,当前服务器版本是jdk1.6.0_29-64    。

nexus安装包下载:http://www.sonatype.org/nexus/archived

先是下载目前最新的版本

Nexus 2.6.3              2013-09-16

 

有提供zip和tar.gz格式,随便下哪种都可以。解压后安装到/opt/nexus目录。

 

二、解压之后会有两个文件夹,nexus-2.6.0-05和sonatype-work,我们进入第一个文件夹的bin目录来启动nexus 。

1、进入启动目录,启动

cd nexus-2.6.0-05/bin/
./nexus start

 

2、这时候提示:

****************************************
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

 

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

vi /etc/profile  加入export RUN_AS_USER=root

 

三、启动之后查看日志(日志路径:nexus/logs)

报:

wrapper  | Reloading Wrapper configuration...
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 5    | Exception in thread "main" java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 5    |     at java.lang.ClassLoader.defineClass1(Native Method)
jvm 5    |     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 5    |     at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 5    |     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 5    |     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 5    |     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 5    |     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 5    |     at java.security.AccessController.doPrivileged(Native Method)
jvm 5    |     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 5    |     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 5    |     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 5    |     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 5    | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher.  Program will exit.
wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- Wrapper Stopped

 

网上解释是要JAVA7才行。唉只能下个低版本了。

 

四、重新下了个nexus-oss-webapp-1.9.2.4-bundle.zip 版本。

解压/opt/nexus1924/bin/jsw/linux-x86-64  目录下启动就可以访问了。

http://192.168.13.31:8081/nexus

默认管理员用户名/密码: admin/admin123

 

五、参考

http://blog.youxey.com/archives/293.html   Linux/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入门指南(图文)

 

 

转自:http://blog.csdn.net/cuker919/article/details/12052565

分享到:
评论

相关推荐

    nexus私服搭建及使用整理.docx

    nexus私服搭建及使用整理(Window和linux两种搭建方式)

    linux下搭建内网maven私服

    linux下搭建内网maven私服

    Nexus私服搭建

    在linux环境下搭建nexus私服,包含详细文件和所需安装包

    私服搭建nexus安装包

    官网十分难下载,我这边给大家提供了windows版本以及Linux版本,给大家压缩到一起了,分别有:nexus-3.37.3-02-win64.zip,nexus-3.37.3-02-unix.tar.gz,大家可以自由下载使用。

    nexus的linux版本

    nexus的linux版本,搭建属于自己的maven私服。。。。。。。

    Linux搭建自己Nexus私服的实现方法

    本文介绍如何在Linux服务器通过Docker搭建Nexus私服 一、安装Nexus 1、创建存放数据的位置 # 进入个目录,这个你们随便 cd /srv # 创建个文件夹 mkdir nexus-data # 赋予权限,不然启动会报错,无操作权限 chmod ...

    Linux下利用nexus搭建maven私服

    操作步骤清晰 简单易懂,分分钟就完成搭建

    linux,nexus3.14+maven3.6.3.zip,搭建maven私服一步到位

    linux,搭建maven私服,nexus3.14+maven3.6.3.zip,apache-maven-3.6.3-bin.tar.gz,nexus-3.14.0-04-unix.tar.gz

    nexus-3.16.2-01-unix.tar.gz-Maven私服Nexus安装包(Linux版)

    最新Maven私服的搭建工具,Nexus安装包,Linux环境下,解压(配置)安装

    maven私服tar包(nexus_linux).zip

    linux搭建maven私服所需tar包, nexus-3.15.2-01-unix.tar.gz。

    nexus3远程搭建maven私服(离线)

    如果安装nexus3.x搭建maven私服,前提需要在Linux服务器安装1.8JDK以及3.xMAVEN版本 1、安装jdk和maven: (1)、下载jdk1.8Linux版本,上传于指定目录下并解压(maven也一样), (2)、执行 vim /etc/profile命令...

    windows和linux下Maven私服nexus-3.27.0-03搭建

    maven私服必备神器,该压缩包包含最新版的nexus安装包,含windows和linux版。 Nexus 是Maven仓库管理器,如果你使用Maven,你可以从Maven中央仓库 下载所需要的构件(artifact),但这通常不是一个好的做法,你应该...

    nexus2.14.14.zip搭建maven私服工具——linux版

    nexus2.14.14.zip搭建maven私有仓库工具,linux版。在linux下解压,./bin/nexus start启动,默认情况下,不建议以root用户运行Nexus,可以修改bin/nexus中的配置跳过警告(修改RUN_AS_USER=root),vi bin/nexus,...

    nexus-2.14.rar

    为什么要搭建nexus私服,原因很简单,有些公司都不提供外网给项目组人员,因此就不能使用maven访问远程的仓库地址,所以很有必要在局域网里找一台有外网权限的机器,搭建nexus私服,然后开发人员连到这台私服上,...

    linux环境内网搭建nexus服务器

    linux环境下内网搭建nexus私服,供公司内部网络环境开发,以及上传单个及批量jar包的方式说明

    nexus-3.39.0-01 安装包下载(包含Linux 与Win版本)

    Nexus 是 Sonatype 公司发布的一款仓库(Repository)管理软件,常用来搭建 Maven 私服,所以也有人将 Nexus 称为“Maven仓库管理器”。 压缩包内包含 Linux 版 与 win 版; Linux:nexus-3.39.0-01-unix.tar.gz ...

    nexus-2.15.0-04-bundle.zip

    Maven 搭建 Nexus 私服 Windows 和 Linux 都可 Nexus 仓库按照类型(Type)区分,主要分为以下 3 个类型: 代理仓库(proxy):用来代理远程公共仓库,如 Maven 中央仓库、JBoss 远程仓库。 宿主仓库(hosted):又...

    Linux版本nexus3.40.1以及相关配置文件

    搭建私服资源,包括Linux版本nexus3.40.1、上传私服需配置的setting文件,下载依赖需配置的setting文件,免费供大家取用

    linux-nexus-2.12.0-01-bundle

    使用nexus搭建maven私服教学文章使用的相关资源,提供浏览者使用,在linux环境下搭建maven私服的安装包,对应使用博客https://blog.csdn.net/qq_36911145/article/details/82905299

Global site tag (gtag.js) - Google Analytics