In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to add php and mysql commands to environment variables under the linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to add php and mysql commands to environment variables in the linux system."
Method 1: run the commands export PATH=$PATH:/usr/local/webserver/php/bin and export PATH=$PATH:/usr/local/webserver/mysql/bin directly
Using this method is only valid for the current session, that is, every time you log out or log out of the system, the PATH setting becomes invalid, only temporarily.
Method 2: execute vi ~ / .bash_profile to modify the PATH line in the file, and add / usr/local/webserver/php/bin and / usr/local/webserver/mysql/bin to the PATH=$PATH:$HOME/bin line.
This method is only valid for currently logged in users
Method 3: modify the / etc/profile file to make it permanent and effective for all system users, adding the following two lines of code at the end of the file
PATH=$PATH:/usr/local/webserver/php/bin:/usr/local/webserver/mysql/bin
Export PATH
Finally: execute the command source / etc/profile or execute the point command. / profile to make the changes take effect. After execution, you can check whether the addition is successful through the echo $PATH command.
At this point, I believe you have a deeper understanding of "how to add php and mysql commands to environment variables in the linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.