您的位置:首页 > 运维架构 > Linux

Nexus 安装(Linux 环境)

2017-02-28 17:28 246 查看
一、环境准备



安装 JDK 1.7

二、下载 Nexus 压缩文件



下载地址:http://www.sonatype.org/nexus/archived/





三、上传压缩文件





四、解压缩文件





五、配置环境变量



1、临时配置

命令:export RUN_AS_USER=root



2、永久配置

命令:vi /etc/profile  

export RUN_AS_USER=root




六、配置文件生效



命令:source /etc/profile



七、启动 Nexus 服务



命令:cd /usr/local/nexus-2.5.1-01/bin

命令:./nexus start



八、修改 Nexus 配置

命令:cd /usr/local/nexus-2.5.1-01/conf/

命令:vim nexus.properties



#UI 访问端口号
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


九、监控 Nexus 日志

命令:cd /usr/local/nexus-2.5.1-01/logs/

命令:tail -f wrapper.log



十、开启端口(配置文件: application-port)

命令:firewall-cmd --zone=public --add-port=8081/tcp --permanent





十一、重启端口

命令:firewall-cmd --reload

十二、测试

访问地址:http://192.168.206.153:8081/nexus

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: