5
mac 快速使用 nginx
source link: https://blog.kelu.org/tech/2023/12/25/mac-nginx.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
brew install nginx
/opt/homebrew/etc/nginx/nginx.conf
配置设置和常用的nginx是一样的。默认的目录和文件:
brew info nginx
虽然 homebrew 已经安装nginx成功了。但是 nginx
并未被正确安装到Homebrew的默认目录,
brew services 可能无法找到正确的安装路径而报错。
brew services reload nginx
brew services start nginx
brew services stop nginx
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK