LoginSignup
5
6

More than 5 years have passed since last update.

osxへのnginxのインストール【nginx-fullに変更】

Last updated at Posted at 2014-04-18

インストール

ターミナル
$ brew install nginx

起動したら

ターミナル
$ sudo nginx

こんなエラーが

ターミナル
dyld: Library not loaded: /usr/local/lib/libpcre.1.dylib
  Referenced from: /usr/local/bin/nginx
  Reason: image not found

これ

ターミナル
$ brew remove openssl
$ brew install openssl

・・・

sub_filterが使えなかったので nginxを削除して、nginx-fullをインストール

ターミナル
$ brew uninstall nginx

$ brew tap marcqualie/nginx
$ brew install nginx-full --with-sub

エラーが出ることもあるようです。下の @yu-sa のコメントを参考にしてください。

Error: You must `brew link pcre' before marcqualie/nginx/nginx-full can be installed

参考にしたサイト

Mac - homebrewでnginxを入れるときはnginx-fullを入れよう

Install Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X Mavericks using Homebrew

Installing Nginx in Mac OS X Maverick With Homebrew

Cannot open zsh shell as login

5
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6