nginx
共 3 篇文章
Nginx域名配置server_names_hash问题
今天在配置Nginx服务器时,配置文件检查报: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 查了一个WIKI,看到如下的内容: 保存服务器名字的hash表是由指令 server_names_hash_max_size 和 server_names_hash_bucket_size所控制的。 参数hash bucket size总是等于hash表的大小,并且是一路处理器缓存大小的倍数。在减少了在内存中的存取次数后,使在处理器中加速查找hash表键值成为可…
2011-09-22 09:43 · nginx
Linux下启动Nginx脚本
首先: vi /etc/init.d/nginx #!/bin/bash #nginx Startup script for the Nginx HTTP Server # it is v.1.0.6 version. # chkconfig: - 85 15 # description: Nginx is a high-performance web and proxy server. # It has a lot of features, but it's not for everyone. # processname: nginx # pidfile: /usr/local/nginx…
Linux下安装nginx时注意事项
1、下载最新的稳定版 wget http://nginx.org/download/nginx-1.0.6.tar.gz 2、执行如下命令 tar zxf nginx-1.0.6.tar.gz cd nginx-1.0.6 ./configure --prefix=/usr/local/nginx1.0.6 make make install 3、如果在./configure时出现: the HTTP rewrite module requires the PCRE library 则检查系统是否安装了pcre-devel包, 可以使用: yum install pcre-devel 4、如…