下载安装包(http://pan.baidu.com/s/1nvBOwgp 密码:fseu)
1.解压压缩包
- 解压出来有两个文件夹:
- 这是程序目录:
nexus-2.12.0-01
- 这是仓库目录:
sonatype-work
2.编辑系统配置文件:vim /etc/profile
添加
# Nexus NEXUS_HOME=/usr/program/nexus2.12.0 export NEXUS_HOME RUN_AS_USER=root export RUN_AS_USER
刷新配置:
source /etc/profile
-
开放防火墙端口:
- 添加规则:
sudo iptables -I INPUT -p tcp -m tcp --dport 8081 -j ACCEPT
- 保存规则:sudo service iptables save
- 重启 iptables:
sudo service iptables restart
或者 firewall-cmd --permanent --add-port=8081/tcp
- 添加规则:
- 启动 Nexus:
./nexus start
- 查看启动日志:
tail -200f xxx/logs/wrapper.log
- 关闭 Nexus:
./nexus stop
- 访问:http://ip:8081/nexus
- 登录账号密码:
- 账号:admin
- 密码:admin123
3.进入系统首页下载