使用Nexus2搭建Maven私服

149 阅读1分钟

1. 下载Nexus

地址:www.sonatype.org/nexus/go/

2. 解压

unzip nexus-2.11.0-02-bundle.zip /opt/soft/nexus/

3. 启动

./nexus start     
****************************************     
WARNING - NOT RECOMMENDED TO RUN AS ROOT     
****************************************     
If you insist running as root, thenset the environment variable RUN_AS_USER=root before running this script.    

vi/etc/profile     
exportRUN_AS_USER=root     
source/etc/profile         
./nexus start     
****************************************     
WARNING - NOT RECOMMENDED TO RUN AS ROOT     
****************************************     
Starting Nexus OSS...     
Started Nexus OSS.

4. 测试

访问:http://host:8081/nexus/

点击右上角“Log in”, 输入用户名和密码(默认用户名:admin 密码: admin123)登录