Windows10 NGINX1.2.0.2 tomcat 负载均衡配置
直接上配置代码,打开nginx.conf文件,配置好后,启动nginx
命令:start nginx
如果要停止:nginx.exe -s quit
#user nobody;
worker_processes 1;
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_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $
共有 0 条评论