-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.txt
33 lines (23 loc) · 834 Bytes
/
nginx.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
./configure --prefix=/usr/local/nginx-1.0.6 --with-md5=/usr/lib --with-sha1=/usr/lib --with-cc-opt="-I /usr/include/pcre -I /usr/local/ssl/include/openssl" --with-http_ssl_module
make -j10
make install
/etc/nginx/nginx.conf
events {
worker_connections 10240;
use epoll;
}
fastcgi_connect_timeout 100;
fastcgi_send_timeout 100;
fastcgi_read_timeout 100;
server_tokens off;
reset_timedout_connection on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";
vim /etc/nginx/fastcgi_params
client_max_body_size 35m; #客户端上传文件大小设为35M
client_body_temp_path /tmp/nginx; #设置临时目录