配置环境:CentOS7
1,下载私服软件:nexus-2.11.2-06-bundle
[root@centos nexus-2.11.2-06-bundle]# ll drwxr-xr-x 8 root root 4.0K 3月 11 2015 nexus-2.11.2-06 drwxr-xr-x 3 root root 4.0K 3月 11 2015 sonatype-work
2,配置端口号
[root@centos nexus-2.11.2-06-bundle]# vim nexus-2.11.2-06/conf/nexus.properties ...... application-port=9091 ......
3,配置启动用户
[root@centos nexus-2.11.2-06-bundle]# vim nexus-2.11.2-06/bin/nexus ...... RUN_AS_USER=root ......
4,配置启动脚本
[root@centos nexus-2.11.2-06-bundle]# vim start.sh ./nexus-2.11.2-06/bin/nexus start
5,配置停止脚本
[root@centos nexus-2.11.2-06-bundle]# vim stop.sh ./nexus-2.11.2-06/bin/nexus stop
6,配置执行权限
[root@centos nexus-2.11.2-06-bundle]# chmod +x start.sh stop.sh
7,启动私服
[root@centos nexus-2.11.2-06-bundle]# ./start.sh
8,访问仓库:
http://服务器IP:9091/nexus/
管理员默认账号密码为admin/admin
9,Window环境下差异:
进入目录:nexus-2.11.2-06-bundle.zip\nexus-2.11.2-06\bin\jsw
找到自己系统对应的文件夹进入:
console-nexus.bat:控制台形式启动 install-nexus.bat:安装成Windows服务 start-nexus.bat:启动Windows服务 stop-nexus.bat:停止Windows服务 uninstall-nexus.bat:卸载Windows服务