博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux下使用nexus搭建maven仓库私服
阅读量:7019 次
发布时间:2019-06-28

本文共 1107 字,大约阅读时间需要 3 分钟。

hot3.png

下载安装

下载地址: (目前最新版本是2.12.0-01)

解压后会在同级目录中,出现两个文件夹: nexus-2.12.0-01 和sonatype-work ,前者包含了nexus的运行环境和应用程序,后者包含了你自己的配置和数据。

解压命令:

tar zxvf nexus-2.12.0-01-bundle.tar.gz

启动Nexus

cd /nexus-2.12.0-01/bin./nexusUsage: ./nexus { console | start | stop | restart | status | dump }# ./nexus start****************************************If you insist running as root, then set theenvironment variable RUN_AS_USER=root before running this script.****************************************Starting Nexus OSS...Started Nexus OSS.

如果出现 If you insist running as root, then set theenvironment variable RUN_AS_USER=root before running this script.

 解决方法

        关于这个问题共有两种解决方法,一种是临时解决,一种是永久的解决。

临时解决

export RUN_AS_USER=root ./nexus start

永久方法

vi /etc/profile添加到文件最后一行export RUN_AS_USER=root

修改保存即可!

启动nexus即可

 cd /nexus-2.12.0-01/bin ./nexus start

Apache 域名代理配置

<VirtualHost *:80>

ServerAdmin 127.0.0.1
DocumentRoot "/mnt/soft/nexus/nexus-2.12.0-01/nexus"  ---nexus 安装目录
ServerName 127.0.0.1
ServerName 域名(例如: test.nexus.org)
ProxyPass /   8998 为nexus配置端口号
ServerAlias 127.0.0.1
</VirtualHost>

转载于:https://my.oschina.net/lcdmusic/blog/618933

你可能感兴趣的文章
php 计算页面执行时间
查看>>
更改Zend Studio/Eclipse的制表Tab缩进为4个空格缩进
查看>>
find 命令使用
查看>>
你的数据安全么?Hadoop再曝安全漏洞| 黑客利用Hadoop Yarn资源管理系统未授权访问漏洞进行攻击...
查看>>
Nacos v0.7.0:对接CMDB,实现基于标签的服务发现能力
查看>>
如何成为软件高手系列之一
查看>>
正则表达式的multiline和dotall模式
查看>>
706. Design HashMap - LeetCode
查看>>
关于vector容器的内存释放
查看>>
青玉案-元夕
查看>>
spark安装测试
查看>>
性能测试常用的监控指令 topas vmstat iostat
查看>>
Hadoop集群部署模型纵览1
查看>>
构建Hybrid应用-使用ionic
查看>>
React入门第一弹——React的起源
查看>>
提高DB2并发度的三大方法
查看>>
Oracle中With as用法
查看>>
Android - Binary XML file line #8: Error inflating class fragment
查看>>
我的友情链接
查看>>
查找当前undo正在处理的事务
查看>>