操作系统:Centos6.6

私服Ip:10.0.210.112

JDK:1.7 (已安装并配置好了环境变量

1:上 传 nexus-2.11.2-03-bundle.tar.gz到/root/nexus下,解压:

# mkdir nexus

# cd nexus

# tar -zxvf nexus-2.11.2-03-bundle.tar.gz

nexus-2.11.2-03      sonatype-work

(一个nexus服务,一个私有库目录)

2:编辑/root/nexus/nexus-2.11.2-03/conf/nexus.properties文件,保留默认(什么都不做,只是让你看下这个端口,下面要用到的)

# vi /root/nexus/nexus-2.11.2-03/conf/nexus.properties

Centos6.6搭建Maven私服

3: 编辑 /root/nexus/nexus-2.11.2-03/bin/ 目录下的 nexus 文件,配置RUN_AS_USER参数:

# vi /root/nexus/nexus-2.11.2-03/bin/nexus

将#RUN_AS_USER 改成 RUN_AS_USER=root

4: 防火墙打开8081端口:

# vi /etc/sysconfig/iptables 添加下面一行:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT

# service iptables restart  (重启防火墙)

5: 启动nexus:

# /root/nexus/nexus-2.11.2-03/bin/nexus start

6: 浏览器打开: http://10.0.210.112:8081/nexus/

Centos6.6搭建Maven私服

7: 点击Log In 登录 (账号密码默认 admin admin123) :

Centos6.6搭建Maven私服

 

相关文章:

  • 2021-06-29
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-08-14
  • 2021-04-27
  • 2021-10-08
  • 2021-07-19
  • 2021-11-30
相关资源
相似解决方案