server

第 23 章 Logs 分析

01-01
目录 23.1. log 23.1.1. logwatch 23.1.2. logcheck : Analyzes log files and sends noticeable events as email 23.1.3. nulog 23.2. Web 23.2.1. Apache Log 23.2.1.1. 刪除日志 23.2.1.2. 统计爬虫 23.2.1.3. 统计浏览器 23.2.1.4. IP 统计 23.2.1.5. 统计域名 23.2.1.6. HTTP Status 23.

第 18 章 Zabbix

01-01
目录 18.1. Installing and Configuring Zabbix 18.1.1. Ubuntu 18.1.2. CentOS Zabbix 2.4 18.1.3. Zabbix 3.x CentOS 7 18.2. web ui 18.2.1. 警告脚本 18.3. zabbix-java-gateway - Zabbix java gateway 18.4. zabbix-agent 18.4.1. Ubuntu 18.4.2. CentOS 7 18.4.3. zabbi

第 12 章 Other Web Server

01-01
目录 12.1. Python SimpleHTTPServer 12.1. Python SimpleHTTPServer python -m SimpleHTTPServer & curl http://localhost:8000/ 原文出处:Netkiller 系列 手札 本文作者:陈景峯 转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明.

9.2. Configure

01-01
  修改配置 vi records.config   CONFIG proxy.config.proxy_name STRING cache1 ### 修改成cache的server name即可   CONFIG proxy.config.cluster.ethernet_interface STRING eth0 ### 修改成需要侦听的interface名称,默认是 null   CONFIG proxy.config.admin.user_id STRING nobody ### 用来运

第 9 章 Apache Traffic Server

01-01
目录 9.1. Install 9.2. Configure 9.1. Install yum install gcc gcc-c++ make autoconf -y yum -y install tcl lzma tcl-devel expat expat-devel pcre-devel perl perl-devel cd /usr/local/src/ wget http://mirror.bjtu.edu.cn/apache//trafficserver/trafficserver-

8.5. example

01-01
例 8.1. default.vcl neo@netkiller:/etc/varnish$ cat default.vcl # This is a basic VCL configuration file for varnish. See the vcl(7) # man page for details on VCL syntax and semantics. # # Default backend definition. Set this to point to your content

8.2. varnish utility

01-01
8.2.1. status $ varnishstat or $ varnishstat -n /var/lib/varnish/atom-netkiller/ HTTP Head $ curl -I http://bg7nyt.mooo.com/ HTTP/1.1 404 Not Found X-Powered-By: PHP/5.2.6-3ubuntu4.2 Content-type: text/html Server: lighttpd/1.4.19 Content-Length: 539

第 7 章 Web Server Optimization

01-01
目录 7.1. ulimit 7.1.1. open files 7.2. khttpd 7.3. php.ini 7.3.1. Resource Limits 7.3.2. File Uploads 7.3.3. Session Shared 7.3.4. PATHINFO 7.4. APC Cache (php-apc - APC (Alternative PHP Cache) module for PHP 5) 7.5. Zend Optimizer 7.6. eaccelerator 系

第 6 章 Application Server

01-01
目录 6.1. Zope 6.2. JBoss - JBoss Enterprise Middleware 6.1. Zope 参考Python安装 下载 Zope-3 wget http://www.zope.org/Products/Zope3/3.3.1/Zope-3.3.1.tgz tar zxvf Zope-3.3.1.tgz cd cd Zope-3.3.1 configure ./configure --prefix=/usr/local/Zope --with-python=/u

5.3. resin.conf

01-01
5.3.1. Maximum number of threads Maximum number of threads. <thread-max>4096</thread-max> thread-max数值需要使用ab命令做压力测试,逐步调整. 5.3.2. Configures the keepalive <!-- Configures the keepalive --> <keepalive-max>128</keepalive-max> &l

4.3. Module

01-01
server.modules = ( # "mod_rewrite", # "mod_redirect", # "mod_alias", "mod_access", # "mod_trigger_b4_dl", # "mod_auth", # "mod_status", # "mod_setenv", # "mod_fastcgi&quo

第 4 章 Lighttpd

01-01
目录 4.1. 安装Lighttpd 4.1.1. quick install with aptitude 4.1.2. yum install 4.1.3. to compile and then install lighttpd 4.1.3.1. shell script 4.2. /etc/lighttpd/lighttpd.conf 4.2.1. max-worker / max-fds 4.2.2. accesslog.filename 4.2.3. ETags 4.2.4. serv

4.2. /etc/lighttpd/lighttpd.conf

01-01
4.2.1. max-worker / max-fds max-worker 我一般设置为与处理器数目相同. max-fds 最大连接数 server.max-worker = 24 server.max-fds = 4096 4.2.2. accesslog.filename 通过cronolog切割日志 #### accesslog module #accesslog.filename = "/www/logs/lighttpd.access.log" accesslog.file

3.5. Error Prompt

01-01
3.5.1. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration 没有加载 mod_authz_host 模块 LoadModule authz_host_module modules/mod_authz_host.so 3.5.2. Invalid command 'AuthUserFile', perhaps misspelled

3.2. Module

01-01
模块的做用如下: mod_access 提供基于主机的访问控制命令 mod_actions 能够运行基于MIME类型的CGI脚本或HTTP请求方法 mod_alias 能执行URL重定向服务 mod_asis 使文档能在没有HTTP头标的情况下被发送到客户端 mod_auth 支持使用存储在文本文件中的用户名.口令实现认证 mod_auth_dbm 支持使用DBM文件存储基本HTTP认证 mod_auth_mysql 支持使用MySQL数据库实现基本HTTP认证 mod_auth_anon 允许

第 3 章 Apache httpd

01-01
LAMP 目录 3.1. Install 3.1.1. Quick install apache with aptitude 3.1.1.1. command 3.1.1.2. rewrite module 3.1.1.3. PHP module 3.1.1.4. deflate module 3.1.1.5. ssl module 3.1.1.6. VirtualHost 3.1.1.7. ~userdir module - /public_html 3.1.1.8. PHP 5 3.1.2.

1.6. Example

01-01
1.6.1. Nginx + Tomcat 例 1.5. Nginx + Tomcat server { listen 80; server_name www.example.com; charset utf-8; access_log /var/log/nginx/www.example.com.access.log; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_he

1.7. FAQ

01-01
1.7.1. 405 Not Allowed? 1.7.1.1. 405 Not Allowed? 1.7.1.1. 405 Not Allowed? 静态页面POST会提示405 Not Allowed错误. # curl -d name=neo http://www.mydoamin.com/index.html <html> <head><title>405 Not Allowed</title></head> <body bgcol

1.5. Nginx module

01-01
1.5.1. stub_status location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } php-fpm 状态 location ~ ^/(status|ping)$ { access_log off; allow 202.82.21.12; deny all; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME

第 2 章 Sniffer

01-01
目录 2.1. nmap - Network exploration tool and security / port scanner 2.1.1. 端口扫描 2.1.2. HOST DISCOVERY 2.1.2.1. -sP: Ping Scan - go no further than determining if host is online 2.1.3. SCAN TECHNIQUES 2.1.3.1. -sU: UDP Scan 扫描 2.1.3.2. -b <FTP relay h