1. 云服务器环境搭建01-JDK安装

  2. 云服务器环境搭建02-MAVEN安装

  3. 下载一个Nexus3
    百度网盘
    链接:https://pan.baidu.com/s/11RlvG7XmVO61u_vQM1VLhg
    提取码:z1u1

  4. 上传nexus安装包,至 /usr/local目录下
    我这里是Xshell上传

[root@localhost local]# cd /usr/local
  1. 解压在/usr/local目录下
[root@localhost local]# tar -zxvf nexus-3.16.2-01-unix.tar.gz
  1. 启动nexus
[root@localhost local]# cd nexus-3.16.2-01/bin
[root@localhost bin]# ./nexus start

在这里插入图片描述

7.设置成服务

[root@localhost bin]# sudo ln -s /usr/local/nexus-3.16.2-01/bin/nexus /etc/init.d/nexus

在这里插入图片描述

#查看nexus服务状态、启动服务、停止服务等

service nexus status/start/stop

#设置为开机自启动/关闭等

chkconfig nexus on/off

8.nexus默认端口是8081
修改命令:

[root@localhost bin]# iptables -I INPUT -p tcp --dport 8081 -j ACCEPT

保存命令:

[root@localhost bin]# /etc/rc.d/init.d/iptables save

在这里插入图片描述

重启命令:

 [root@localhost bin]# /etc/rc.d/init.d/iptables save

在这里插入图片描述

9.查看防火墙状态命令:

[root@localhost bin]# /etc/init.d/iptables status

在这里插入图片描述

10.验证测试
访问地址:http:// 192.168.93.130:8081/
默认登陆名:admin
默认密码:admin123
在这里插入图片描述

11.云服务器环境搭建04-Maven私服配置与项目连接

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐