How to keep Environment Variables when Using SUDO
Posted 嗡嘛呢巴美吽舍
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to keep Environment Variables when Using SUDO相关的知识,希望对你有一定的参考价值。
The trick is to add environment variables to sudoers
file via sudo visudo
command and add these lines:
Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy"
from: http://stackoverflow.com/questions/8633461/how-to-keep-environment-variables-when-using-sudo
以上是关于How to keep Environment Variables when Using SUDO的主要内容,如果未能解决你的问题,请参考以下文章
how to build a android environment in ubuntu 15.10
How to set up a basic working Appium test environment
how to transfer your linux to new work environment
how to adjust PKG_CONFIG_PATH environment-variable
How to enable C development in a Windows 10 development environment VM