In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Ubuntu how to set environmental variables, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
One: for the current terminal:
Enter in the current terminal:
The code is as follows:
Export PATH=$PATH:
However, the above method only applies to the current terminal and is invalid once the current terminal is closed or in another terminal.
Two: for the current user:
There is a .bashrc hidden file in the user's home directory. You can add PATH to this file as follows:
The code is as follows:
Vi / .bashrc
Join:
The code is as follows:
Export PATH=:$PATH
If you want to join multiple paths, just:
The code is as follows:
Export PATH=::. : $PATH
Each path should be separated by a colon.
So that every login will take effect.
Three: for all users:
The code is as follows:
Sudo vi / etc/profile
Join:
The code is as follows:
Export PATH=:$PATH
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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: 268
*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.