Nginx篇章
Nginx前后端项目必备神器
下载地址:http://tengine.taobao.org/nginx_docs/en/download.html
加压运行即可使用
nginx配置
#指定用户运行,不配置默认都可以
#user nobody;
#子线程数量
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# 全局log格式设置
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access