1.官网下载 nexus-2.11.1-01-bundle.tar.gz 上传 linux系统
2.新建nexus目录 解压 tar xvfz nexus-2.11.1-01-bundle.tar.gz //在当前目录下将压缩包文档.tar.gz解压缩
3、解压之后会有两个文件夹,nexus-2.11.1-01和sonatype-work,我们进入第一个文件夹的bin目录来启动nexus 。
进入启动目录,启动
cd nexus-2.11.1-01/bin/
./nexus start
这时候提示:
****************************************
WARNING – NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
在系统里面永久配置
vi /etc/profile 加入export RUN_AS_USER=root
此处用户名可随意选择,最好不要是root
注:①如果使用root,未创建其它用户,则改为root(不建议使用root,这样是有root用户可以启动)
source /etc/profile
再从新启动就可以了
启动
#./nexus start