Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 230

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 300

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 301

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 302

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 305

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 308

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 311

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/typology/functions.php on line 320
nginx – 理想社会

Tagnginx

nginx打开目录浏览功能

n

打开nginx.conf文件,在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去:
autoindex_exact_size off;
默认为on,显示出文件的确切大小,单位是bytes。
改为off后,显示出文件的大概大小,单位是kB或者MB或者GB
autoindex_localtime on;
默认为off,显示的文件时间为GMT时间。
改为on后,显示的文件时间为文件的服务器时间

Netstat命令详解 如何关闭TIME_WAIT连接 如何查看nginx的访问流量

N

做计算机管理员,我们都必要了解一下netstat这个命令,它是一个查看网络连接状态的工具,在windows下也默认有这个工具。
Netstat命令详解 netstat命令怎样使用 如何关闭TIME_WAIT连接 如何统计web服务器的访问量 如果查看nginx的访问流量?
下面我们来看看它主要的用法和详解!
(netstat -na 命令),本文主要是说Linux下的netstat工具,然后详细说明一下各种网络连接状态。
netstat -nat |awk ‘{print $6}’|sort|uniq -c|sort -nr
1.netstat命令详解
其实我常用的是 netstat -tnl | grep 443 (查看443端口是否被占用),如果有当前是root用户,我喜欢用netstat -pnl | grep 443 (还可显示出占用本机443端口的进程PID)。

nginx中status的解释

n

nginx中有个status页面信息。以前一直没注意。今天‘狗狗’了一下。在此总结下心得。
nginx 服务器status页面信息如下:
Active connections: 220
server accepts handled requests
9975450 9975450 14928953
Reading: 1 Writing: 1 Waiting: 208

LNAMP 1.0 alpha 一键安装包

L

LNAMP 1.0 final changelog: 1、将setupvm-without-pure- ftp.sh和setupvm-with-pure-ftp.sh两个文件合并为setup-vhost.sh一个文件,执行./setup- vhost.sh后将会有1. setup virtual host without using ftp service和2. setup virtual host with ftp service两个选项,从而根据需要创建自己的虚拟主机; 2、将beta版中的suhosin extension改为了suhosin patch; 3、将CentOS、Debian和Ubuntu下的安装文件集中压缩成一个包LNAMP_1.0_final.tar.gz; 4、规范书写了程序,增强了兼容性(尤其是增加了对burst.net vps的支持);...

nginx实现404状态返回200隐藏URL

n

server
{
listen       80;
server_name  aaa.bbb.com;
charset gb2312;
index index.php index.html;
root   /data/www/wwwroot/aaa.bbb.com;
error_page 404 =200 /.404.jpg;
//注:上传一个404.jpg文件到aaa.bbb.com的根目录, 并改名为.404.jpg

Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器

N

[文章作者:张宴 本文版本:v6.0 最后修改:2010.03.04 转载请注明原文链接:]
前言:本文是我撰写的关于搭建“Nginx + PHP(FastCGI)”Web服务器的第6篇文章。本系列文章作为国内最早详细介绍 Nginx + PHP 安装、配置、使用的资料之一,为推动 Nginx 在国内的发展产生了积极的作用。本文可能不断更新小版本,请记住原文链接“”, 获取最新内容。第6篇文章主要介绍了Nginx 0.8.x新的平滑重启方式,将PHP升级到了5.2.13,修正了PEAR问题。另将MySQL 5.1.x升级到了5.5.x系列,配置文件变更较大。

linuxas5和as4下nginx+php+myql+zend等(转)

l

编译安装软件包
源码编译安装所需包(Source)
升级OpenSSL及OpenSSH       tar xvf openssl-0.9.8h.tar.gz
cd openssl-0.9.8h
./config –prefix=/usr/local/openssl
make
make test
make install
tar zxvf openssh-5.0p1.tar.gz
cd openssh-5.0p1
./configure  
–prefix=/usr
–with-pam
–with-zlib
–sysconfdir=/etc/ssh
–with-ssl-dir=/usr/local/openssl
–with-md5-passwords

Your sidebar area is currently empty. Hurry up and add some widgets.