Centos610安装Nexus

1.下载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) 2008-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=8081
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=4096

5.修改环境变量

  vi /etc/profile

  新增如下配置

#set nexus enviroment
 NEXUS_HOME=/opt/nexus/nexus-2.14.15-01
 PATH=$PATH:$NEXUS_HOME/bin
 export NEXUS_HOME

 刷新生效

 source  /etc/profile

 

6.进入bin目录

  cd /opt/nexus/nexus-2.14.15-01/bin

 

 

上一篇:上传Android studio项目到Maven项目仓库


下一篇:Ubuntu maven环境安装配置