1.在nexus官网地址:http://www.sonatype.org 下载nexus-2.14.3-02-bundle.tar.gz包。
2.解压:
#cd /usr/local
#mkdir nexus
#tar -zvxf nexus-2.14.3-02-bundle.tar.gz
![]()
nexus-2.12.3-02 ---服务 sonatype-work----私有库目录
3.编辑Nexus的配置文件nexus.properties,配置端口和work目录信息。
#cd nexus-2.14.3-02、conf
#vi nexus.properties
# Jetty section
application-port=8081
application-host=0.0.0.0
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
默认不做修改需开启8081端口
4.编辑nexus脚本,配置RUN_AS_USER参数
#cd ../bin
#vi nexus
原来是#RUN_AS_USER= 改为如下
RUN_AS_USER=root
5.修改防火墙
#vi /etc/sysconfig/iptables
加入-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
保存重启防火墙
#service iptables restart
6.启动nexus
#./nexus start
本文提供了一步一步安装部署Nexus 2.14.3的具体流程,包括下载软件包、配置文件修改、防火墙设置及服务启动等关键步骤。
666

被折叠的 条评论
为什么被折叠?



