APMServ 5.2.6 Nginx无法启动BUG修正方法 - 网站

APMServ 5.2.6 Nginx无法启动BUG修正方法

分类:WEB前端开发工具使用教程 · 发布时间:2022-11-21 11:06 · 阅读:2963

APMServ 5.2.6 无法启动Nginx的BUG修正方法: 在nginxconfnginx.conf配置文件的http { }内,增加以下三行语句(注意去掉盘符后的路径需跟当前路径一致): client_body_temp_path /APMServ5.2.6/nginx/client_body_temp; proxy_temp_path /APMServ5.2.6/nginx/proxy_tem

APMServ 5.2.6 无法启动Nginx的BUG修正方法:
在nginx\conf\nginx.conf配置文件的http { }内,增加以下三行语句(注意去掉盘符后的路径需跟当前路径一致):
client_body_temp_path /APMServ5.2.6/nginx/client_body_temp;
proxy_temp_path /APMServ5.2.6/nginx/proxy_temp;
fastcgi_temp_path /APMServ5.2.6/nginx/fastcgi_temp;
-----------------------------------------------------------------------------------------------------
修正后的nginx\conf\nginx.conf配置文件全文如下:
-----------------------------------------------------------------------------------------------------

worker_processes 1;

error_log /APMServ5.2.6/nginx/logs/error.log crit;

pid /APMServ5.2.6/nginx/logs/nginx.pid;

events {
worker_connections 64;
}

http {
include /APMServ5.2.6/nginx/conf/mime.types;
default_type application/octet-stream;

#charset gb2312;

server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;

keepalive_timeout 60;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
client_body_temp_path /APMServ5.2.6/nginx/client_body_temp;
proxy_temp_path /APMServ5.2.6/nginx/proxy_temp;
fastcgi_temp_path /APMServ5.2.6/nginx/fastcgi_temp;

gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;

server {
listen 85;
server_name localhost;
index index.html index.htm index.php;
root /APMServ5.2.6/www/htdocs;
autoindex on;

location ~ .*\.(php|php5)?$ {
fastcgi_pass 127.0.0.1:9000;
include /APMServ5.2.6/nginx/conf/fastcgi_params;
}

log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /APMServ5.2.6/nginx/logs/access.log access;
}
}
标签:
APMServ Nginx 无法启动 bug

相关文章

WPS如何删除空白页 WPS删除空白页的方法

在编辑文档时,我们可能会遇到空白页的情况,下面我将介绍几种删除WPS空白页的方法,有需要的朋友一起来了解一下吧

wps如何恢复老版本 wps恢复到旧版本的教程

wps如何恢复老版本?wps升级以后,发现用不习惯,想要退回到老版本,该怎么操作呢?下面我们就来看看wps恢复到旧版本的教程

wps和word一样吗? wps和word的区别介绍

很多用户不知道Word和WPS两款软件的区别?分别了解了这两个软件是什么之后,我们就可以为你介绍Word和WPS的区别,详细请看下文介绍

WPS怎么打开pdf文档? WPS导入PDF文件的技巧

WPS怎么打开pdf文档?wps中想要导入pdf文档,该怎么操作呢?下面我们就来看看WPS导入PDF文件的技巧

wps如何还原设置? WPS恢复默认设置的技巧

wps如何还原设置?wps设置过后想要恢复原来的设置,该怎么操作呢?下面我们就来看看WPS恢复默认设置的技巧

返回分类 返回首页