「Mac/インストール/nginx」の版間の差分
提供: 初心者エンジニアの簡易メモ
| 行16: | 行16: | ||
==参考== | ==参考== | ||
http://phiary.me/mac-nginx-install/ | http://phiary.me/mac-nginx-install/ | ||
| + | |||
| + | ==設定ファイルの追加== | ||
| + | vi servers/default.conf | ||
2016年9月8日 (木) 08:24時点における版
インストール
sudo brew install nginx
起動・停止
sudo nginx sudo nginx -s stop
httpアクセス
ttp://localhost:8080/
設定ファイルのドキュメントルート変更
vi /usr/local/etc/nginx/nginx.conf
location / {
root html;
参考
http://phiary.me/mac-nginx-install/
設定ファイルの追加
vi servers/default.conf
