1. 上传到linux服务器服务home目录,解压缩 tar -zxvfnexus-2.7.2-03-bundle.tar.gz
2. 查看你的系统信息,是否nexus支持: uname –a
[root@localhost opt]# uname -a
Linux localhost 2.6.32-220.el6.x86_64 #1 SMPWed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost opt]# cd /opt/nexus-2.7.2-03/bin/jsw
[root@localhost jsw]# ls
conf linux-ppc-64 macosx-universal-32 solaris-sparc-64 windows-x86-64
lib linux-x86-32 macosx-universal-64 solaris-x86-32
license linux-x86-64 solaris-sparc-32 windows-x86-32
3. 进入 nexus 的bin目录,执行启动命令
./nexus start命令启动
出现:
If you insist running asroot, then set the environment variable RUN_AS_USER=root before running thisscript.
打开vi /home/nexus-2.7.2-03/bin/nexus
修改:RUN_AS_USER=root或者export RUN_AS_USER=root
`也可以忽略不计
4. 访问地址:访问192.168.1.230:8081/nexus
出现成功界面!!
常用用法: ./nexus { console | start | stop | restart | status | dump }
主要:防止端口号占用:修改conf 下