LoginSignup
0

More than 3 years have passed since last update.

macOS High Sierra version 10.13.5 にnginxをインストールする

Last updated at Posted at 2018-08-16

nginxの有効化まで

nginxのインストール

$ brew install nginx
Warning: You are using OS X 10.13.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.

を実行すると、エラーが返ってくる
HighSierraとhomebrewの相性?の問題らしいので、
以下のコードでhomebrewを再インストールする。

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

バージョン確認

$ brew -v
Homebrew 1.7.1

(参考)
'brew update' errors on MacOS 10.13 (High Sierra)
HomeBrewでmacOS 10.13(Hight Sierra)にCarthage入れる時のエラー

これで晴れて

brew install nginx

インストール完了

$ nginx -V
nginx version: nginx/1.15.2

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
0