您的位置:首页 > 运维架构 > Linux

linux下搭建nexus提示then set the environment variable RUN_AS_USER=root

2016-11-28 14:01 381 查看
我们进入第一个文件夹的bin目录来启动nexus 。

1、进入启动目录,启动

cd nexus-2.8.0-05/bin/
./nexus start

2、这时候提示:

****************************************

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.

大概意思就是要在环境配置export RUN_AS_USER=root,临时配置

在命令行下输入:

export RUN_AS_USER=root

然后执行,就不会再提示了

./nexus start

3、也可以在系统里面永久配置

vi /etc/profile  加入export RUN_AS_USER=root
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐