In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to set the environment variable of linux? This problem may be often seen in our daily work. Through this question, I hope you can gain more. Let's take a look at the solution with the editor today.
1. Temporary
Export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:new_path_name
Where new_path_name is the new path. This is only valid for the current shell. Restart and disappear.
2. Permanent
Vim / etc/profileexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:new_path_namesource / etc/profile
The global environment variable, the restart does not disappear, is valid for all users.
3. Permanent
~ / .bashrcexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:new_path_namesource .bashrc
The global environment variable, the restart does not disappear, but is only valid for the currently logged in user.
This is the end of the three methods of setting environment variables in linux. Solving the problem is not just the method analyzed in the article and everyone, but the accuracy of the analysis method in this article is indisputable. If you like this article, you might as well share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.