1234567891011121314
brew install nginx## 安装后提示Docroot is: /usr/local/var/wwwThe default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so thatnginx can run without sudo.nginx will load all files in /usr/local/etc/nginx/servers/.To have launchd start nginx now and restart at login: brew services start nginxOr, if you don't want/need a background service you can just run: nginx
工程中,有时候需要让某个目录受版本控制,同时该目录下所有文件均不受版本控制,只需在该目录下 .gitignore 文件编辑如下内容即可
.gitignore
12
*!.gitignore