In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to install php7 fpm on mac". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Mac installation php7 fpm method: 1, Install Homebrew;2, Install PHP7.1 by "brew install php@7.1";3, Load PHP-FPM;4, Install Nginx;5, Install extensions.
Operating environment: macOS 10.15 system, PHP 7.1 version, macbook pro 2020 computer
Install MNMP on Mac (Nginx+PHP7) Environment
install Homebrew
Open terminal input
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
And then you can use it.
brew install ****
to install the required dependencies.
Install PHP7.1 (FPM mode) brew install php@7.1
Since OS X already comes with PHP environment, you need to modify the system path, run the brew installation version first, and add in ~/.bashrc:
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"PHP-FPM loading and startup
After installation php-fpm can be started and stopped with the following commands
php-fpm -Dkillall php-fpm install Nginxbrew install nginx
After installation, you can pass through
nginxnginx -s quit
Start and close, and also support operations such as overloading configuration files
nginx -s reload|reopen|stop|quit
After php-fpm is started and Nginx is started, you can run the php program through http://localhost.
installation extension
Installation using pecl
/usr/local/Cellar/php\@7.1/7.1.23/pecl install redis/usr/local/Cellar/php\@7.1/7.1.23/pecl install mongodb/usr/local/Cellar/php\@7.1/7.1.23/pecl install memcahced"mac how to install php7 fpm" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.