网站首页
手机版

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

更新时间:2024-06-01 00:09:32作者:未知

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

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;
}
}

本文标签: 配置文件  路径  语句  

为您推荐

重装操作系统的原因与目的(重装操作系统的原因与目的有哪些)

重装操作系统的原因与目的 重装操作系统是一件很繁琐的工作,那么哪些情况下需要重新安装操作系统呢?其实,我们可以把重装系统大致分为以下两种情况: 1、主动重装系统

2024-07-03 00:09

重装系统前如何备份"开始"菜单 重装系统前如何备份文件

重装系统前如何备份"开始"菜单 很多软件安装的时候都会在“开始”菜单添加快捷方式,对于必须安装才能运行的软件,备份“开始”菜单的意义不大,但实际上并是每个软件都

2024-07-03 00:09

天猫建议您升级操作系统提示是怎么回事?

天猫建议您升级操作系统提示是怎么回事? 问:今天打开淘宝网(天猫)后,我的电脑突然有一条提示,喵,XP系统即将结束支持,为预防购物风险,享受更棒的体验,天猫建议

2024-07-03 00:09

GHOST系统时出现"A:/GHOSTERR.TXT"怎么办 安装ghost出现a

GHOST系统时出现"A:/GHOSTERR.TXT"怎么办 故障原因及解决方法: 1.ghost系统光盘表面有磨损。请重新下载并检验ISO文件的MD5是否正确

2024-07-03 00:09

系统不认光驱怎么办 系统不认光驱怎么办呢

系统不认光驱怎么办 一、系统不认虚拟光驱的原因 1、一些程序必须在它安装时的驱动器上运行。比如安装源盘是E,就必须设置你的虚拟光盘的盘符为E; 2、一些程序必须

2024-07-03 00:09

高手是怎么清理系统垃圾文件(如何清理系统盘垃圾文件)

高手是怎么清理系统垃圾文件 清除历史记录 清除的方法是进入“控制面板→Internet选项”对话框,在“常规”页面中单击其“删除文件”和“清除历史记录”选项按钮

2024-07-03 00:09