linux 筹建nexus

linux 搭建nexus

http://wenku.baidu.com/link?url=WUxADwh2uxA7LaiGz2YGsoge2IfUxQNNNkNGWCNzDqvwpaCGsLZNah13BKw96UvnNIIpNAB0lAVYwsztX5jEoYx8VwMonzczImHJTk6tZoq###

 

http://wenku.baidu.com/view/a4f22fcebceb19e8b8f6ba69.html?re=view###

 

2.3 编辑Nexus的nexus.properties文件,配置端口和work目录信息:

[command] ~>  [root@localhost ~]# vim /usr/local/nexus/conf/nexus.properties  

[vim] ~>  ## 配置端口信息  # application-port=8081 application-port=8044  

# 配置IP端口访问  

# nexus-webapp-context-path=/nexus nexus-webapp-context-path=/  

## 配置work目录地址,Maven仓库JAR缓存地址  # nexus-work=${bundleBasedir}/../sonatype-work/nexus nexus-work=${bundleBasedir}/nexus-work/nexus    

2.4 编辑Nexus文件,复制nexus到/etc/init.d/目录,配置NEXUS_HOME/RUN_AS_USER/PIDDIR参数,然后设置为开机启动:

[command] ~>  [root@localhost ~]# vim /usr/local/nexus/bin/nexus  

[vim] ~>  # Set this to the root of the Nexus installation.

# NEXUS_HOME=".."  

NEXUS_HOME="/usr/local/nexus"  

# The user can be changed.

# RUN_AS_USER=

RUN_AS_USER=root  

# Location of the pid file.

# PIDDIR="."  PIDDIR="/var/run"  

 

# JAVA HOME  

JAVA_HOME=/usr/local/jdk7

PATH=$JAVA_HOME/bin:$PATH