Tag Archives: nginx

编写 Nginx 启动脚本

今天试了一下直接使用 php-cgi 启用 fastcgi 的脚本竟然又可以使用了,真奇怪。 写了一个自动启动脚本,放到这里做个备份: #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU Continue Reading →

在 Gentoo 上安装 Nginx + php

从源码安装 Nginx ./configure –prefix=/usr –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx_error.log –http-log-path=/var/log/nginx_access.log –pid-path=/var/run/nginx.pid –http-client-body-temp-path=/var/tmp/nginx_client_body.tmp –http-proxy-temp-path=/var/tmp/nginx_proxy.tmp –http-fastcgi-temp-path=/var/tmp/nginx_fastcgi.tmp –with-http_stub_status_module –with-http_ssl_module –with-openssl=/usr/src/openssl (启用了监控和ssl模块,重新设置文件路径) make make install 注意,–with-openssl 指向的是 Continue Reading →