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 > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the mac php does not take effect how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The solution that mac php does not take effect: 1, add the content of "sudo vim / etc/profile" in the "/ etc/profile" file; 2, add "if [- f / .bashrc]; then. ~ / .bashrc" at the end of the file.
This article operating environment: MAC OS X 10.9.1 system, PHP5 version, MacBook Air 2019 computer.
The Mac environment variable does not take effect (adding php to the environment variable).
Mac environment variable does not take effect, the key lies in bash and zsh
For example:
Add php to the environment variable
Sudo vim ~ / .bashrc (if the file is not available, it will be created automatically)
Written in the file: source $(brew-prefix php-version) / php-version.sh & & php-version 5
After saving and exiting, execute source .bashrc to reset the environment variables
Php55-fpm restart
However, it is found that after each boot, the environment variables need to be reset.
The following:
MAC OS X 10.9.1 does not load ~ / .bashrc by default, so add the following (root permissions) to the / etc/profile file yourself:
Sudo vim / etc/profile (already exists)
At the end of the file, add
If [- f ~ / .bashrc]; then. ~ / .bashrcf I (there is no space in the middle of this sentence)
Save, exit
The above operations, if used in the zsh environment, are only temporary.
If it is replaced by bash, it will be effective forever.
Zsh and bash toggle commands:
Chsh-s / bin/bashchsh-s / bin/zsh Thank you for reading this article carefully. I hope the article "what if mac php does not take effect" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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.