If you insist running as root, then set the environment variable RUN_AS_USER=root before running thi
来源:互联网 发布:网络舆情监测机制 编辑:程序博客网 时间:2024/06/01 20:04
1、现象
今天在linux系统配置Nexus的时输入命令./nexus start后出现"If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script."的警告信息。大概的意思是:如果你想使用root用户,那么在运行开始脚本之前应该设置环境变量”RUN_AS_USER=root"。
错误如下图:
2、解决方法
关于这个问题共有两种解决方法,一种是临时解决,一种是永久的解决。临时方法
输入:export RUN_AS_USER=root 后在执行 ./nexus start 运行结果如下图:
永久方法
在系统用配置即可,输入:vi /etc/profile向其中加入exportRUN_AS_USER=root,修改后保存退出,如下图
修改完之后,先关闭nexus,再启动,如下图
1 0
- If you insist running as root, then set the environment variable RUN_AS_USER=root before running thi
- 运维小知识---If you insist running as root, then set the environment variable RUN_AS_USER=root...
- If you insist running as root, then set the environment variable RUN_AS_USER=root
- 开启nexus出现If you insist running as root, then set the environment variable RUN_AS_USER=root
- linux下搭建nexus提示then set the environment variable RUN_AS_USER=root
- Running Celery as root
- Running Wireshark as a non root user
- 编译错误you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this
- Building and running MySQL as a local (non-root) user
- TKB00064 Running Teamprise as Root User Causes Problems
- Please try running this command again as root/Administrator.
- Set DISPLAY environment variable, then re-run.
- password file must be owned by root when running as root解决方法
- Running as user "root" and group "root". This could be dangerous. tshark: Lua: Error during loading:
- if you have installed spm, it maybe you haven't set a NODE_PATH environment variable
- Siebel Error: Please unset any Siebel related variable in your environment before running this setup.(SBL-STJ-00198)
- VC++6.0安装错误:You must first run the Installation Wizard before running this setup 解决方案
- You must first run the Installation Wizard before running this setup
- Java实现归并排序
- Socket和Http通信
- 连接的比较
- curl图片上传,网上很多太陈旧,导致上传错误
- x86 指令集发展历程
- If you insist running as root, then set the environment variable RUN_AS_USER=root before running thi
- OkHttp报错javax.net.ssl.SSLHandshakeException: Handshake failed
- Android Fragment中嵌套Fragment,不显示view
- 文本超出部分用省略号表示
- C#IO流总结
- swift学习笔记--for循环移除后的不便
- C++如何读取任意数目的整数
- MQ、JMS以及ActiveMQ
- Unix网络编程之给阻塞式函数设定超时限定