不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:php-note.com  发布于:2022-06-01 16:33  分类:电脑/软件使用  编辑

1、MacBook(macOS Big Sur v11.6.5)自带安装了PHP版本 v7.3.29

% php -v
WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.29-to-be-removed-in-future-macOS (cli) (built: Sep  6 2021 05:14:39) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies

2、配置php-fpm

# 拷贝配置文件

sudo cp  /etc/php-fpm.conf.default  /etc/php-fpm.conf
sudo cp /etc/php-fpm.d/www.conf.default  /etc/php-fpm.d/www.conf 

# 设置错误日志路径

sudo vim  /etc/php-fpm.conf

error_log = /Users/wenjianbao/tmp/php-fpm.log

# 启动php-fpm

php-fpm

# 关闭php-fpm

killall php-fpm