「Mac/インストール/nginx」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==インストール== sudo brew install nginx ==起動・停止== sudo nginx sudo nginx -s stop ==httpアクセス== ttp://localhost:8080/ ==設定ファイルの...」) |
(相違点なし)
|
2016年9月8日 (木) 07:26時点における版
インストール
sudo brew install nginx
起動・停止
sudo nginx sudo nginx -s stop
httpアクセス
ttp://localhost:8080/
設定ファイルのドキュメントルート変更
vi /usr/local/etc/nginx/nginx.conf location / { root html;