Centos610安装Nexus
1.下载Nexus
地址: https://pan.baidu.com/s/1D5AI6zmuRBSMK0k7j41VuQ
提取码: q50j
选择02-nexus
2.新建nexus账号
useradd nexus
重置密码
passwd nexus
123456
3.更改文件属性
chown -R nexus:nexus /opt/nexus/nexus-2.14.15-01/
chown -R nexus:nexus /opt/nexus/sonatype-work/
4.修改端口
cd /opt/nexus/nexus-2.14.15-01/conf
vi nexus.properties
#
# Sonatype Nexus (TM) Open Source Version
# Copyright (c) -present Sonatype, Inc.
# All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
#
# This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
# which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
#
# Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
# of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
# Eclipse Foundation. All other trademarks are the property of their respective owners.
# # Sonatype Nexus
# ==============
# This is the most basic configuration of Nexus. # Jetty section
application-port=
application-host=192.168.125.139
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus # Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF # orientdb buffer size in megabytes
storage.diskCache.bufferSize=
5.修改环境变量
vi /etc/profile
新增如下配置
#set nexus enviroment
NEXUS_HOME=/opt/nexus/nexus-2.14.-
PATH=$PATH:$NEXUS_HOME/bin
export NEXUS_HOME
刷新生效
source /etc/profile
6.开机启动
# vi /etc/rc.d/rc.local
# set nexus auto-run when open system
su - nexus -c '/opt/nexus/nexus-2.14.15-01/bin/nexus start'
#复制脚本cp /opt/nexus/nexus-2.14.15-01/bin/nexus /etc/init.d/nexus
#添加系统服务:chkconfig --add nexus
#设置启动级别为345:chkconfig --levels 345 nexus on
#查看是否添加成功:chkconfig --list|grep nexus
#vi /etc/init.d/nexus
#第一行 设置启动账号
#RUN_AS_USER="root"
#将NEXUS_HOME=".."修改为NEXUS_HOME="/opt/nexus/nexus-2.14.15-01/"
#重启 reboot查看nexus是否启动,ps –ef|grep nexus
7.系统访问验证
http://192.168.125.139:8081/nexus

9.修改账号
默认账号 admin/admin123
请修改登录密码
10.重启再次验证
居然启动失败了,切换nexus账号输入 nexus console 执行一半失败了
经过日志分析2个原因:
a./opt/nexus/目录下面的有文件的所有这发生了变化,既文件的所属和权限发生了变化
b./opt/nexus/sonatype-work/nexus/conf/nexus.xml 删除该文件,运行时会自动生成
c.vi /etc/hosts 添加 127.0.0.1 机器名
经过以上分析修正后,执行正常了。
Centos610安装Nexus的更多相关文章
- CentOS安装Nexus(Maven私有库)详细配置及上传本地jar到私服
Nexus原理 Maven的原理就是将jar从远程中央仓库下载到PC磁盘的本地仓库,当本地仓库没有发现需要的jar就会去Maven默认的远程中央仓库Maven Central(由Apache维护)中寻 ...
- 在Windows上安装Nexus 3.2.0-01
在Windows上安装Nexus 环境: Windows 7 apache-maven-3.3.9 JDK 1.8 下载Nexus: https://sonatype-download.globa ...
- 在CMD命令下安装nexus报错和启动的问题
安装问题问题描述: 在控制台(cmd)下执行nexus install命令安装nexus服务的时候报错: wrapper | OpenSCManager failed - 拒绝访问. (0x5) 同时 ...
- CentOS 7下安装nexus 3
安装nexus 3的几个注意事项: 1.nexus 3和nexus 2不一样,nexus 2可以搜索Maven主仓库的包,但在nexus 3不能,只能搜索缓存过的包. 2.安装时关心的点在于运行环境, ...
- Linux环境安装Nexus
Linux环境安装Nexus Nexus可以做Maven私服,私服不是Maven的核心概念,它仅仅是一种衍生出来的特殊的Maven仓库.有三种专门的Maven仓库管理软件可以用来帮助大家建立私服: N ...
- Maven nexus 安装nexus私服出现的两个问题
1. 在win10中安装nexus时提示:wrapper | OpenSCManager failed - 拒绝访问. (0x5) 主要是没有权限.需要以管理员的身份运行 如果你是直接点击 start ...
- (十一)maven之安装nexus私服
安装nexus私服 前面的文章中对项目引入jar依赖包的时候,maven一般先是在本地仓库找对应版本的jar依赖包,如果在本地仓库中找不到,就上中央仓库中下载到本地仓库. 然而maven默认提供的中央 ...
- 在Windows上安装Nexus
在Windows上安装Nexus 学习了:https://www.cnblogs.com/yucongblog/p/6696736.html 下载地址:https://sonatype-downloa ...
- Maven nexus 安装nexus : wrapper | OpenSCManager failed - 拒绝访问。 (0x5)
在win7中安装nexus时提示:wrapper | OpenSCManager failed - 拒绝访问. (0x5) 主要是没有权限.需要以管理员的身份运行 如果你是直接点击 start-nex ...
随机推荐
- POJ3122 Pie(二分)
题目链接:http://poj.org/problem?id=3122 题意:一堆人分蛋糕,每人蛋糕大小一样,求最大能分多少,蛋糕必须是整块整块的,不能两块拼一起.然后注意输入F个人最后要分F+1份. ...
- 数据库之一、数据库简介及SQL概要
1.数据库简介: 数据库(Database,DB)是一个长期存储在计算机内的.有组织的.有共享的.统一管理的数据集合.简单来讲就是可以放大量数据的地方.管理数据库的计算机系统称为数据库管理系统(Dat ...
- 当你工作与生活迷茫时可以来看看 shuke
青春是用来奋斗的 很多人在还没工作的时候,总感觉自己有能力会混的不错.毕业几年后,发现社会跟学校完全是两个世界.不经常思考的人,惰性总会让人得过且过混日子,不思考未来的路怎么走,就等于你安于现状,接受 ...
- PPT 素材大全
1.模板大全 2.三方辅助软件APP 3.PPT学习软件 www.presentationload.com dribble.com www.zcool.com.cn 4.其他功能
- Go_json
package main import ( "encoding/json" "fmt" ) // 结构体与json // 1.序列化: 把Go语言中的结构体变量 ...
- UVA 1267 Network(DFS)
题目链接:https://vjudge.net/problem/UVA-1267 首先我们要把这样一棵无根树转换成有根树,那么树根我们可以直接使用$VOD$. 还有一个性质:如果深度为$d$的一个节点 ...
- 【转载】Java的JDBC事务详解
转自:http://www.cnblogs.com/azhqiang/p/4044127.html 事务的特性: 1) 原子性(atomicity):事务是数据库的逻辑工作单位,而且是必须是原子工作单 ...
- Django Auth组件->扩展用户
Auth用户 1.声明用户表 djangauth/settings.py..............................AUTH_USER_MODEL = 'app01.UserInfo' ...
- opencv:图像轮廓发现
#include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace st ...
- fiddler抓包手机准备工作
1.勾选connections中的:Allow remote computers to connect 2.cmd中查找IP 3.在手机连接的WiFi中设置手动代理为:IP port:8888 4.在 ...