上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 在Nginx.conf 里配置 location ~ ^/status$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; } 然后在p 阅读全文
posted @ 2016-05-31 18:31 丶小炒肉 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 系统连接状态篇: 1.查看TCP连接状态 netstat -nat |awk '{print $6}'|sort|uniq -c|sort -rn netstat -n | awk '/^tcp/ {++S[$NF]};END {for(a in S) print a, S[a]}' 或 netst 阅读全文
posted @ 2016-05-31 18:30 丶小炒肉 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /v 阅读全文
posted @ 2016-05-31 18:30 丶小炒肉 阅读(200) 评论(0) 推荐(0) 编辑
摘要: cd /etc/yum.repos.d wget http://public-yum.oracle.com/public-yum-ol6.repo mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS-Debuginfo.repo CentOS-Deb 阅读全文
posted @ 2016-05-31 18:29 丶小炒肉 阅读(607) 评论(0) 推荐(0) 编辑
摘要: Nginx 后端 日志文件 获取的都是 前端 负载均衡器的IP 想要获取用户的真实IP 必须 使用Nginx 的模块 http_realip_module 才行!! 1. 编译 Nginx 的时候 开启 http_realip_module 模块 ./configure --user=upload 阅读全文
posted @ 2016-05-31 18:29 丶小炒肉 阅读(1853) 评论(0) 推荐(0) 编辑
摘要: 日志出现大量: xxxxxxxxxxxxx - - [04/Jul/2013:23:37:49 +0800] "GET /1000.html HTTP/1.0" 200 56471 "-" "ApacheBench/2.3" - xxxxxxxxxxxxx - - [04/Jul/2013:23:3 阅读全文
posted @ 2016-05-31 18:28 丶小炒肉 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 一、配置Nginx 日志分割 (略) 二、配置FCGI 1、安装CPAN wget http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-2.00.tar.gz tar zxf CPAN-2.00.tar.gz cd CPAN-2.00 perl 阅读全文
posted @ 2016-05-31 18:28 丶小炒肉 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 第一, 首先必须安装 apacache mysql php CentOS 直接使用 yum 安装 yum -y install httpd httpd-devel mysql php-mysql mysql-server mysql-devel mysql-test mysql-connector- 阅读全文
posted @ 2016-05-31 18:27 丶小炒肉 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 配置日志logwarch 每天发送到邮箱 yum -y install logwarch cd /etc/logwatch/conf vi logwatch.conf 增加 LogDir = /var/log MailTo = your@mail.com MailFrom = Logwatch Ra 阅读全文
posted @ 2016-05-31 18:25 丶小炒肉 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.首先下载所需软件 wget https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz wget http://sourceforge.net/projects/re2c/files/re2c/0.13 阅读全文
posted @ 2016-05-31 18:25 丶小炒肉 阅读(1314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页