centos下nexus安装

来源:互联网 发布:物联网 区块链 知乎 编辑:程序博客网 时间:2024/05/20 09:10

centos下nexus安装

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

2.安装和启动nexus

1>解压安装文件tar zxvf nexus-2.11.1-01-bundle.tar.gz2>修改配置文件1:/nexus-2.12.0-01/conf/nexus.properties# Jetty section  # 配置端口信息  application-port=8081  application-host=0.0.0.0  nexus-webapp=${bundleBasedir}/nexus  #配置IP端口访问  #http://192.168.10.56:8081/nexus/可修改为: /  nexus-webapp-context-path=/nexus  # Nexus section  #配置work目录地址,Maven仓库JAR缓存地址,可修改其他地址eg:${bundleBasedir}/nexus-work/nexus   nexus-work=${bundleBasedir}/../sonatype-work/nexus  runtime=${bundleBasedir}/nexus/WEB-INF  3>修改配置文件2:/nexus-2.12.0-01/bin/nexus………………  #NEXUS_HOME=".."  #如果目录改变配置,如果修改了运行路径  NEXUS_HOME="/home/nexus/nexus-2.12.0-01"  ……………………  #RUN_AS_USER=  #nexus启动用户  RUN_AS_USER=root  4>启动nexuscd /home/nexus/nexus-2.12.0-01/bin./nexus start5>查看是否启动成功cd /home/nexus/nexus-2.11.1-01/logs  tail -f wrapper.log注:启动日志:*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Started则,启动成功!

3.配置开机启动nexus

cd /home/nexus/nexus-2.11.1-01/bin  cp nexus /etc/rc.d/init.d/  cd /etc/rc.d/init.d/  chkconfig --add nexus  chkconfig --list | grep nexus   chkconfig nexus on  chkconfig --list | grep nexus   
0 0
原创粉丝点击