云服务器环境搭建03-Maven私服Nexus3安装
·
-
下载一个Nexus3
百度网盘
链接:https://pan.baidu.com/s/11RlvG7XmVO61u_vQM1VLhg
提取码:z1u1 -
上传nexus安装包,至 /usr/local目录下
我这里是Xshell上传
[root@localhost local]# cd /usr/local
- 解压在/usr/local目录下
[root@localhost local]# tar -zxvf nexus-3.16.2-01-unix.tar.gz
- 启动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

更多推荐
所有评论(0)