ubuntu nginx php shell
ubuntu 下一键安装 nginx php 的环境
nginx 配置参考:
server {
listen 80;
server_name 127.0.0.1 localhost;
root /usr/share/nginx/html/www;
index index.php index.html index.htm;
location ~ .*\.php(\/.*)*$ {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffers 8 256k;
fastcgi_buffer_size 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
client_max_body_size 20M;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
主要是配置缓存大小
- 本文标题:ubuntu nginx php shell
- 创建时间:2013-06-16 00:00:00
- 本文链接:posts/6363.html
- 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!