
nginx
朱智文
不求大富大贵,但求一路常青
展开
-
配置nginx状态信息的代码,就是往nginx_vhosts.conf中添加如下内容
cat >>/application/nginx/conf/extra/nginx_vhosts.conf ### server { listen 80; server_name status.etiantian.org; location /{ stub_status on; access_log off; } } EOF 然后将status.etiant原创 2015-02-02 14:08:57 · 1023 阅读 · 0 评论 -
nginx相关参数说明
赵金巧,朱智文喜欢你一辈子原创 2015-02-02 20:23:56 · 716 阅读 · 0 评论 -
-bash: /application/nginx/sbin/nginx: No such file or directory启动nginx时出现的
[root@mode bin]# /application/nginx/sbin/nginx -t -bash: /application/nginx/sbin/nginx: No such file or directory 在启动nginx时,出现这个问题怎么解决呢, 我的解决办法是: 查找 libpcre.so* 找到其路径 编辑/etc/ld.so.conf 添加:/u原创 2015-02-01 16:29:22 · 13371 阅读 · 2 评论 -
查看nginx.apache.mysql.php squid 编译参数
查看nginx服务的编译参数 /application/nginx/sbin/nginx -V [root@mode ~]# /application/nginx/sbin/nginx -V nginx version: nginx/1.2.1 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configure arguments: --us原创 2015-02-02 14:24:56 · 1101 阅读 · 0 评论 -
安装Nginx步骤
######################################################## install: zlib-devel pcre-devel openssl-devel tar zxvf nginx-0.9.4.tar.gz ./configure --prefix=/usr/local/naginx make原创 2015-03-01 17:06:37 · 518 阅读 · 0 评论 -
Nginx.conf 中状态信息
./configure --with-http_stub_status_module nginx.conf添加: server { location /NginxStatus/ { stub_status on; allow your_ip_address;原创 2015-03-01 17:11:01 · 570 阅读 · 0 评论 -
Nginx参数选项
options 选项: -c 为 Nginx 指定一个配置文件,来代替缺省的。 -t 不运行,而仅仅测试配置文件。nginx 将检查配置文件的语法的正确性,并尝试打开配置文件中所引用到的文件。 -v 显示 nginx 的版本。 -V 显示 nginx 的版本,编译器版本和配置参数。 Template:Anchor Nginx -s stop 快速关闭Nginx原创 2015-03-01 17:02:06 · 628 阅读 · 0 评论 -
Nginx 启动脚本/重启脚本
第一步 先运行命令关闭nginx sudo kill `cat /usr/local/nginx/logs/nginx.pid` 第二步 vi /etc/init.d/nginx 输入以下内容 #!/bin/sh # # nginx - this script starts and stops the nginx daemin # # c原创 2015-03-01 17:08:06 · 651 阅读 · 0 评论 -
nginx日志格式说明
1、配置文件 #vim /usr/local/nginx/conf/nginx.conf log_format access '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '原创 2015-03-01 17:03:59 · 2884 阅读 · 1 评论