安装命令
brew install nginx
配置文件
/usr/local/etc/nginx/nginx.conf
html文件
/usr/local/Cellar/nginx/1.2.3/html
配置
server {
listen 80;
server_name localhost;
#access_log logs/host.access.log main;
location / {
root /Users/to/www;
index index.html index.htm;
}
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!