nexus仓库下载地址
https://pan.baidu.com/s/1KYNC5VaDYW5BaydpiVqJ2A
(我的目录在mnt下)
执行命令解压tar包
tar zxvf nexus-2.12.0-01-bundle.tar.gz
进入解压好的目录
cd /mnt/nexus-2.12.0-01
进入bin目录运行nexus
cd 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.
因为我是root用户所以需要切换成其他用户或者设置环境变量
export RUN_AS_USER=root
设置环境变量
vim ~/.bash_profile末尾追加上
export RUN_AS_USER=root
加载刚设置的变量
source /etc/profile