- 浏览: 1445461 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (691)
- linux (207)
- shell (33)
- java (42)
- 其他 (22)
- javascript (33)
- cloud (16)
- python (33)
- c (48)
- sql (12)
- 工具 (6)
- 缓存 (16)
- ubuntu (7)
- perl (3)
- lua (2)
- 超级有用 (2)
- 服务器 (2)
- mac (22)
- nginx (34)
- php (2)
- 内核 (2)
- gdb (13)
- ICTCLAS (2)
- mac android (0)
- unix (1)
- android (1)
- vim (1)
- epoll (1)
- ios (21)
- mysql (3)
- systemtap (1)
- 算法 (2)
- 汇编 (2)
- arm (3)
- 我的数据结构 (8)
- websocket (12)
- hadoop (5)
- thrift (2)
- hbase (1)
- graphviz (1)
- redis (1)
- raspberry (2)
- qemu (31)
- opencv (4)
- socket (1)
- opengl (1)
- ibeacons (1)
- emacs (6)
- openstack (24)
- docker (1)
- webrtc (11)
- angularjs (2)
- neutron (23)
- jslinux (18)
- 网络 (13)
- tap (9)
- tensorflow (8)
- nlu (4)
- asm.js (5)
- sip (3)
- xl2tp (5)
- conda (1)
- emscripten (6)
- ffmpeg (10)
- srt (1)
- wasm (5)
- bert (3)
- kaldi (4)
- 知识图谱 (1)
最新评论
-
wahahachuang8:
我喜欢代码简洁易读,服务稳定的推送服务,前段时间研究了一下go ...
websocket的helloworld -
q114687576:
http://www.blue-zero.com/WebSoc ...
websocket的helloworld -
zhaoyanzimm:
感谢您的分享,给我提供了很大的帮助,在使用过程中发现了一个问题 ...
nginx的helloworld模块的helloworld -
haoningabc:
leebyte 写道太NB了,期待早日用上Killinux!么 ...
qemu+emacs+gdb调试内核 -
leebyte:
太NB了,期待早日用上Killinux!
qemu+emacs+gdb调试内核
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc mysql mysql-server mysql-devel参考http://hi.baidu.com/zlflashlight/blog/item/3caa972224d634ffd6cae2b9.html
http://wenku.baidu.com/view/c3828ac4bb4cf7ec4afed0b4.html
今天配置了以下,在ubuntu上
http://www.imagemagick.org/script/index.php
nginx配置
user www-data; #user nobody; worker_processes 4; #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 { autoindex on; autoindex_exact_size off; autoindex_localtime on; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 10; gzip on; gzip_min_length 1k; gzip_buffers 4 8k; gzip_http_version 1.1; gzip_comp_level 3; gzip_types text/css text/xml text/plain application/x-javascript application/xml application/pdf application/rtf application/x-perl application/x-tcl application/msword application/vnd.ms-excel application/vnd.ms-powerpoint application/vnd.wap.xhtml+xml image/x-ms-bmp; # gzip_disable "MSIE [1-6] \."; gzip_vary on; output_buffers 4 32k; client_max_body_size 20m; server { listen 80; server_name localhost; charset utf-8,gb2312; access_log /home/ubuntu/log/access.log; location / { root /home/ubuntu/www; index index.html index.htm index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; set $path_info "/"; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { root /home/ubuntu/www; access_log off; expires 30d; } location ~ .*\.(js|css|ico)?$ { root /home/ubuntu/www; access_log off; expires 1h; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /home/ubuntu/www; } fastcgi_param SCRIPT_FILENAME /home/ubuntu/www/$real_script_name; fastcgi_param script_name $real_script_name; fastcgi_param path_info $path_info; include /usr/local/openresty/nginx/nginx/conf/fastcgi_params; } }
nginx前需要启动fastcgi
root@li408-34:/usr/local/openresty/nginx/nginx# cat fast.sh #!/bin/sh /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid root@li408-34:/usr/local/openresty/nginx/nginx#
i好奇怪的是spawn-fcgi是需要装lighttpd后才有的
如果是在fedora 7下 测试页面
[root@fedora17 html]# cat index.php <?php phpinfo(); ?> [root@fedora17 html]# pwd /usr/local/nginx/html [root@fedora17 html]#
yum install spawn-fcgi yum install php /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid
配置文件
[root@fedora17 conf]# cat nginx.conf user www-data; #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 { autoindex on; autoindex_exact_size off; autoindex_localtime on; default_type application/octet-stream; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 10; gzip on; gzip_min_length 1k; gzip_buffers 4 8k; gzip_http_version 1.1; gzip_comp_level 3; gzip_types text/css text/xml text/plain application/x-javascript application/xml application/pdf application/rtf application/x-perl application/x-tcl application/msword application/vnd.ms-excel application/vnd.ms-powerpoint application/vnd.wap.xhtml+xml image/x-ms-bmp; # gzip_disable "MSIE [1-6] \."; gzip_vary on; output_buffers 4 32k; client_max_body_size 20m; server { listen 80; server_name 192.168.76.138; charset utf-8,gb2312; access_log /home/ubuntu/log/access.log; location / { root html; index index.html index.htm index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; set $path_info "/"; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { root html; access_log off; expires 30d; } location ~ .*\.(js|css|ico)?$ { root html; access_log off; expires 1h; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param script_name $real_script_name; fastcgi_param path_info $path_info; include /usr/local/nginx/conf/fastcgi_params; } } [root@fedora17 conf]#
发表评论
-
ios的safari使用自制ca证书测试webrtc
2018-08-20 13:31 2339这个需要注意 https://stackoverflow.c ... -
nginx push_upstream模块的websocket
2018-05-04 23:27 1156参考 https://www.rails365.net/art ... -
openresty聊天室的helloworld
2018-04-22 19:25 726openresty的websocket + redis的sub ... -
openresty websocket
2018-04-18 17:08 1416mac安装openresty brew install o ... -
nginx模块开发(三)upstream模块
2017-08-20 23:48 793使用nginx-1.13.4版本 三个文件ngx_http_ ... -
nginx模块开发(二) 使用gdb-dashboard调试
2017-08-11 18:47 1922gdb-dashboard或者 gdbgui 或者gdb自带 ... -
nginx模块开发(一)
2017-07-29 22:44 527决定重新整理nginx模块开发 helloworld con ... -
nginx带进度条的上传超大文件
2016-12-12 18:40 382311年写的 http://haoningabc.iteye.c ... -
nginx rewrite替代apache rewrite
2016-10-18 20:30 787清理chrome的缓存 chrome://appcache-i ... -
ffmpeg+nginx 的直播(2,直播摄像头和麦克风)
2016-05-28 20:21 4259假设我的服务器是centos7 192.168.139.117 ... -
ffmpeg+nginx 的直播(1,直播播放的视频文件)
2016-05-26 17:11 652164位操作系统centos7 ############ 1.一 ... -
nginx执行流程
2014-04-15 18:35 1040目标:打印nginx执行之后的流程方法 my_debug.c ... -
graphviz绘制nginx函数调用图
2014-04-14 18:43 1426以下是c的版本 c++代码去 http://www.cnblo ... -
nginx的远程调用模块
2014-03-24 14:31 2735在tx工作的时候,自己的虚拟机总是连接不上,公司封了ssh端口 ... -
通过nginx远程执行shell
2014-03-03 10:26 4987saltstack远程执行shell,远程管理等返回json已 ... -
nginx的upstream模块
2014-01-17 17:37 3154参考http://nginx.weebly.com/31034 ... -
nginx调试日志的几种方法
2013-10-17 22:54 23244最简单的方式就是 fprintf(stderr, &qu ... -
nginx HttpSecureLinkModule 过期token验证模块
2012-11-07 02:15 6050用途,确认一个链接比如下载pdf,在一定有效期内有用 可以加 ... -
nginx 上传进度条
2012-11-01 16:24 7548费劲周折,一晚上终于搞定了,nginx版本1.38 ----- ... -
ubuntu装openrestry
2012-03-01 00:16 1285apt-get install make apt-get in ...
相关推荐
nginx运行php的配置,以及运行wordpress的相关配置。将nginx配置文件拆分成多个配置文件,包括全局配置、每个域名的单独配置,考虑到安全性、缓存等多个因素。
php运行环境搭建(apache+mysql+php / nginx+mysql+php)
linux+nginx+php+mysql环境配置指南.pdf
windows 下nginx和php 安装配置,可以学习安装步骤和配置信息
PHP运行环境配置(Centos 64位 PHP5.4 Nginx)
Windows下Nginx和php-cgi的bat批处理快速启动方法!!!!
* 支持运行php代码与文件 * 支持RFC 1867文件上传协议 * 支持php错误输出 * 支持加载与运行PECL扩展 * 支持nginx的API在php中调用 环境 - PHP 5.3.* PHP 5.4.* PHP 5.5.* PHP 5.6.* - nginx-1.4.7 ...
资源是php+nginx的开发运行环境,应该适用于所有windows系统(本人测试w7+w10+w2003). 获取到资源后,应修改几个文件。 1、PHPServer\nginx\conf 下的nginx.conf进行编辑。 约44行 root--》修改成为你的PHP...
nginx配置多虚拟机,实现nginx运行PHP文件。
本安装文件修改了源码网的“CentOS 集成linux+php-cgi+nginx+mysql安装包“里面的部分文件,主要是修改了install.sh内的几个错误位置。目前我测试在centos 5.4下,安装一切正常! 使用这个安装之前请一定看一下本...
WLNMP是一个包含Nginx MySQL PHP的集合包,是由 WordPress联盟开发团队精心开发的本地 PHP 环境安装包,WLNMP可以让你简单地一键在本地建立PHP运行环境,让你的系统瞬间变成服务器,方便开发者本地开发和测试程序。...
windows上的PHP运行平台,nginx版,php5.6
网上很多的,请看清了再下,纯粹...然后运行start_nginx_php.bat即可。 在windows 2003下,应该将nginx.conf中的端口改为8080或其它端口,相应的 start_nginx_php.bat中的端口也应改为相同的端口。否则不能启动php-cgi
docker提供了在服务端分布式的部署应用,这样的好处是方便...下面这篇文章主要给大家介绍了利用docker搭建php7和nginx运行环境的相关资料,搭建过程中运用的是官方镜像,需要的朋友可以参考借鉴,下面来一起看看吧。
php_xdebug/2.6.0 PHP程序调试器,跟踪、调试和分析PHP程序的运行状况; UPUPW PHP安全探针 支持服务器信息检测,PHP组件检测,PHP已编译模块检测,数据库连接测试等。 功能列表: UPUPW一键式Nginx+PHP+Redis+...
nginx-php服务器配置,已经测试可以正常运行thinkphp框架,重写已经配好
C# 控制 Nginx + PHP + MySql 实例,基于 Net 2.0 开发环境,纯绿色运行。 直接使用,将Bin\Debug,复制出来即可使用。 主要功能: ---------- 1. 所有功能通过读写注册表功能; 2. 每个功能以及参数配置支持...
Nginx+php(FastCGI)+memcache+discuz安装 LAMP 直接运行 按提示操作 半小时安装
Nginx运行与Linux下性能最好,但由于各种原因限制,很多用户都使用windows Nginx PHP环境,Nginx在win系统下很容易造成各种问题,常表现为php-cgi进程莫名其妙自动退出, 造成Nginx无法处理php请求而出现超时故障。...
基于 docker-compose 开发的运行在 Docker 上的 LNMP 开发环境,包含 Nginx、 PHP