Nginx
# 查看安装配置
nginx -V
# 启动
brew services start nginx
# 停止
brew services stop nginx
# 重启
brew services restart nginx
# nginx 配置
/usr/local/Cellar/nginx/conf/
/usr/local/etc/
vi /usr/local/etc/nginx/nginx.conf
tailf /usr/local/var/log/nginx/error.log
tailf /usr/local/var/log/nginx/access.log
MySql
# MySql 启动
mysql.server start
# MySql 配置
/usr/local/etc/
# MySql 密码
xxxxx
PHP
# 启动php-fom
php-fpm -d start
brew services start php
# 重启
brew services restart php
# 关闭
brew services stop php
# 配置文件
/private/etc/php-fpm.d/www.conf
/private/etc/php-fpm.conf
这篇博客介绍了如何在Mac环境下使用Homebrew服务管理Nginx、MySQL和PHP。包括了查看Nginx配置、启动/停止/重启服务以及查看日志的方法。同时,提到了MySQL的启动及配置,以及PHP的启动和配置文件位置。

被折叠的 条评论
为什么被折叠?



