网站性能检测评分
注:本网站页面html检测工具扫描网站中存在的基本问题,仅供参考。
超时
wdcp系列教程之wdcp登陆超时解决方法 公司视频课程
如在安装wdos集成版,或安装一键包或wdcp后,登录一直提示"登录超时" 经检查确认 导致该问题的原因,是系统的时间错误,也就是系统的时间,比当前的时间慢了很多 只要把时间修改正确,就可以修复 首先看下时间是否正确,SSH登录后 先用date命令查看下当前的日期和时间,如下显示 [root@wdos~]#date WedJun2023:09:17CST2012 如果显示不确定或不是当前时间,就用下面办法修复下 SSH终端上 执行 ln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime date-s20120619 date-s2308 hwclock-w 完成 注释: date-s20120619//这个表示当前的日期,请使用实际日期代替 date-s2308//这个表示当前的时间,请使用时间代替 具体修改时,使用相应的日志和时间即可 如果日期没错,就只修改时间就可以 如果还不行,看下当前的日期日间是多少。 本文来自wdlinux论坛,转载请注明!
假期如何发货?淘宝公布最新春节发货规则 行业视频课程
这次规则分别对春节期间卖家发货时间、确认收货超时、退款/售后超时等作出特殊规定,以此提升消费者购物体验,维护淘宝网交易秩序。 1月4日消息,淘宝发布了2017年春节发货时间及交易超时调整公告,对2017年春节期间(2017年1月20日至2月5日)卖家发货时间、交易超时等(含PC、无线)作出特殊规定。 相比往年,今年的春节来得要早一些,忙碌了一整年的电商们也开始启动了回乡之旅。考虑物流公司与卖家经营时间的变化后,这次规则分别对春节期间卖家发货时间、确认收货超时、退款/售后超时等作出特殊规定,以此提升消费者购物体验,维护淘宝网交易秩序。 在发货规则调整上,除了买卖双方另外约定的发货时间之外,消费者在2017年春节期间(2017年1月20日00:00:00至2017年2月5日23:59:59)付款的订单,除全球购、家装主材、基础建材、住宅家具、大家电、母婴行业特定类目外,卖家须在2017年2月8日23:59:59前发货,发货时间以快递公司系统内记录的时间为准。 对于春节期间的全球购订单,卖家须在2017年2月11日23:59:59前发货;此外,家装主材、基础建材、住宅家具、大家电、母婴行业特定类目等大件商品,在2017年1月15日00:00:00至2月11日23:59:59付款的订单暂停发货,卖家须在2017年2月18日23:59:59前完成发货。 在确认收货超时调整上,卖家在春节期间(2017年1月20日00:00:00至2017年2月5日23:59:59),点击发货的快递及ems订单,买家确认收货超时从10天调整至20天,平邮不变(淘宝虚拟商品、电子凭证类目商品除外)。其中,阿里通信号卡与合约机类目、家装主材、基础建材、电子/电工、住宅家具、定制商品、预售商品、度假线路/签证送关/旅游服务、景点门票/实景演出/主题乐园、特价酒店/特色客栈/公寓旅馆类目商品,消费者确认收货超时延长同上。 同时,卖家在上述时间段,点击发货的海外二段集运运输服务交易订单、全球购海外直邮订单,买家确认收货超时都调整至40天。 在退款/售后超时调整上,分别对超时时间进行了延长。例如,在退款超时(交易成功前)上,等待卖家或买家确认、修改的超时统一调整至15天;买家已退货,等待卖家确认收货的超时统一调整至20天(平邮不变);买家确认收到补寄商品超时统一调整至20天。在售后超时上(交易成功后),等待卖家或买家确认、修改的超时统一调整至15天;买家已退货,等待卖家确认收货的超时统一调整至20天;换货维修待买家确认完成超时统一调整至30天。 在退款/售后协商一致等待买家退货超时上,卖家在2017年1月13日00:00:00至2017年2月5日23:59:59期间同意退货协议,协商一致等待买家退货(填写退货单号),等待买家退货超时调整至25天。这其中还包含电子凭证类目、预售、分阶段付款、航旅度假线路/签证送关/旅游服务、景点门票/实景演出/主题乐园、特价酒店/特色客栈/公寓旅馆类目商品。 在客服介入举证和处理时间上,主要分为三类,具体如下: 1)申请客服介入举证期时间 2017年1月20日00:00:00至2017年2月5日23:59:59期间申请介入的淘宝退款/退货维权,若该维权需要走举证流程,则买家或卖家应在申请介入的15日内上传凭证;卖家应在买家完成举证后3日内进行处理,逾期未处理的,维权将自动流入人工处理。 2)客服介入处理时间 2017年1月27日00:00:00至2017年2月2日23:59:59买家或卖家申请客服介入的,将于2017年2月3日后陆续恢复处理。 3)“投诉卖家”处理时间 2017年1月27日00:00:00至2017年2月2日23:59:59发起的投诉卖家,将于2017年2月3日陆续恢复处理。 此外,根据物流公司服务情况,上门取件于2017年1月18日起陆续关闭,而淘宝大众评审申请入口、“发货时间承诺”服务、破损补寄合约调整等都将临时关闭,值得引起广大卖家和买家的注意。 附录: 链接
Nginx的优化与防盗链 营销视频课程
Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx,它的发音为“engineX”,是一个高性能的HTTP和反向代理服务器,同时也是一个IMAP/POP3/SMTP代理服务器.Nginx是由俄罗斯人IgorSysoev为俄罗斯访问量第二的Rambler.ru站点开发. Nginx以事件驱动(epoll)的方式编写,所以有非常好的性能,同时也是一个非常高效的反向代理、负载平衡。但是Nginx并不支持cgi方式运行,原因是可以减少因此带来的一些程序上的漏洞。所以必须使用FastCGI方式来执行PHP程序。 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置。 一、Nginx的优化 1、编译安装前优化 编译前的优化主要是用来修改程序名等等,目的更改源码隐藏软件名称和版本号 安装zlib-devel、pcre-devel等依赖包
- [root@localhost ~]# yum -y install gcc gcc-c++ make libtool zlib zlib-devel pcre pcre-devel openssl openssl-devel
- [root@localhost ~]# tar zxf nginx-1.10.2.tar.gz
- [root@localhost ~]# cd nginx-1.10.2/
- [root@localhost nginx-1.10.2]# vi src/core/nginx.h
- #defineNGINX_VERSION "1.10.2" //第13行
- //此行修改的是你想修改的软件名称
- #defineNGINX_VER "nginx/" NGINX_VERSION //第14行
- #define NGINX_VERSION "7.0"
- #defineNGINX_VER "IIS/" NGINX_VERSION
- [root@localhost nginx-1.10.2]# vi src/http/ngx_http_header_filter_module.c
- static char ngx_http_server_string[] ="Server: nginx" CRLF; //第49行
- staticchar ngx_http_server_string[] = "Server: IIS"CRLF
- [root@localhost nginx-1.10.2]# vi src/http/ngx_http_special_response.c
- static u_char ngx_http_error_tail[] = //第29行
- "
nginx " CRLF - "" CRLF
- "" CRLF
- ;
- static u_char ngx_http_error_tail[] =
- "
IIS " CRLF - "" CRLF
- "" CRLF
- ;
- [root@localhost ~]# groupadd www #添加www组
- [root@localhost ~]# useradd -g www www -s /sbin/nologin #创建nginx运行账户www并加入到www组,不允许www用户直接登录系统
- [root@localhost nginx-1.10.2]# ./configure --prefix=/usr/local/nginx1.10 --with-http_dav_module --with-http_stub_status_module --with-http_addition_module --with-http_sub_module --with-http_flv_module --with-http_mp4_module --with-pcre --with-http_ssl_module --with-http_gzip_static_module --user=www --group=www && make && make install
- # tar zxvf/usr/local/src/pcre-8.36.tar.gz -C /usr/local/src/
- # cd /usr/local/src/pcre-8.36
- # ./configure &&make && make install
- [root@localhost nginx-1.10.2]#ln-s /usr/local/nginx1.10/sbin/nginx /usr/local/sbin/
- [root@localhost nginx-1.10.2]#nginx-t
- [root@localhost nginx-1.10.2]nginx
- [root@localhost nginx-1.10.2]# netstat -anpt | grep nginx
- tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7424/nginx: master
- [root@localhost nginx-1.10.2]# curl -I http://192.168.129.150
- HTTP/1.1 200 OK
- Server: IIS/7.0
- Date: Sat, 18 Mar 2017 02:16:41 GMT
- Content-Type: text/html
- Content-Length: 612
- Last-Modified: Sat, 18 Mar 2017 00:51:03 GMT
- Connection: keep-alive
- ETag: "58cc8477-264"
- Accept-Ranges: bytes
- [root@localhost nginx-1.10.2]# nginx -h
- nginx version: IIS/7.0
- Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
- Options:
- -?,-h : this help
- -v : show version and exit
- -V : show version and configure options then exit
- -t : test configuration and exit
- -T : test configuration, dump it and exit
- -q : suppress non-error messages during configuration testing
- -s signal : send signal to a master process: stop, quit, reopen, reload
- -p prefix : set prefix path (default: /usr/local/nginx1.10/)
- -c filename : set configuration file (default: conf/nginx.conf)
- -g directives : set global directives out of configuration file
- [root@localhost nginx-1.10.2]# ps -ef | grep nginx
- root 7424 1 0 08:52 ? 00:00:00 nginx: master process nginx
- www 34878 7424 0 10:20 ? 00:00:00 nginx: worker process
- [root@localhost nginx-1.10.2]# grep ^processor /proc/cpuinfo | wc -l
- 2
- [root@localhost ~]#vi /usr/local/nginx1.10/conf/nginx.conf
- worker_processes 4;
- [root@localhost ~]#/usr/local/nginx1.10/sbin/nginx -s reload
- [root@localhost ~]# ps -aux | grep nginx | grep -v grep
- root 7424 0.0 0.1 178828 3004 ? Ss 08:52 0:00 nginx: master process nginx
- www 34878 0.0 1.5 207536 28880 ? S 10:20 0:00 nginx: worker process
- www 34879 0.0 1.5 207536 28636 ? S 10:20 0:00 nginx: worker process
- www 34880 0.0 1.5 207536 28636 ? S 10:20 0:00 nginx: worker process
- www 34881 0.0 1.5 207536 28576 ? S 10:20 0:00 nginx: worker process
- www 34882 0.0 0.1 180912 1908 ? S 10:20 0:00 nginx: cache manager process
- worker_processes 4;
- worker_cpu_affinity 0001 0010 0100 1000;
- worker_processes 8;
- worker_cpu_affinity 00000001 0000001000000100 00001000 00010000 00100000 01000000 10000000;
- worker_rlimit_nofile 65535;
- * soft nofile 65535
- * hard nofile 65535
- events {
- use epoll;
- worker_connections 65535;
- multi_accept on;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- ……
- sendfile on;
- tcp_nopush on;
- ……
- keepalive_timeout 60;
- tcp_nodelay on;
- client_header_buffer_size 4k;
- open_file_cache max=102400 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 1;
- client_header_timeout 15;
- client_body_timeout 15;
- reset_timedout_connection on;
- send_timeout 15;
- server_tokens off;
- client_max_body_size 10m;
- fastcgi_connect_timeout 600;
- fastcgi_send_timeout 600;
- fastcgi_read_timeout 600;
- fastcgi_buffer_size 64k;
- fastcgi_buffers 4 64k;
- fastcgi_busy_buffers_size 128k;
- fastcgi_temp_file_write_size 128k;
- fastcgi_temp_path /usr/local/nginx1.10/nginx_tmp;
- fastcgi_intercept_errors on;
- fastcgi_cache_path /usr/local/nginx1.10/fastcgi_cache levels=1:2 keys_zone=cache_fastcgi:128m inactive=1d max_size=10g;
- gzip on;
- gzip_min_length 2k;
- gzip_buffers 4 32k;
- gzip_http_version 1.1;
- gzip_comp_level 6;
- gzip_types text/plaintext/css text/javascript application/json application/javascriptapplication/x-javascript application/xml;
- gzip_vary on;
- gzip_proxied any;
- location ~*\.(ico|jpe?g|gif|png|bmp|swf|flv)$ {
- expires 30d;
- #log_not_found off;
- access_log off;
- }
- location ~* \.(js|css)$ {
- expires 7d;
- log_not_found off;
- access_log off;
- }
- location ~*^.+\.(jpg|gif|png|swf|flv|wma|wmv|asf|mp3|mmf|zip|rar)$ {
- valid_referers none blocked www.benet.com benet.com;
- if ($invalid_referer) {
- #return 302 https://a5img.pncdn.cn/2017/0323/1490259868241.jpg;
- return 404;
- break;
- }
- access_log off;
- }
- fs.file-max = 999999
- net.ipv4.ip_forward = 0
- net.ipv4.conf.default.rp_filter = 1
- net.ipv4.conf.default.accept_source_route= 0
- kernel.sysrq = 0
- kernel.core_uses_pid = 1
- net.ipv4.tcp_syncookies = 1
- kernel.msgmnb = 65536
- kernel.msgmax = 65536
- kernel.shmmax = 68719476736
- kernel.shmall = 4294967296
- net.ipv4.tcp_max_tw_buckets = 6000
- net.ipv4.tcp_sack = 1
- net.ipv4.tcp_window_scaling = 1
- net.ipv4.tcp_rmem = 10240 87380 12582912
- net.ipv4.tcp_wmem = 10240 87380 12582912
- net.core.wmem_default = 8388608
- net.core.rmem_default = 8388608
- net.core.rmem_max = 16777216
- net.core.wmem_max = 16777216
- net.core.netdev_max_backlog = 262144
- net.core.somaxconn = 40960
- net.ipv4.tcp_max_orphans = 3276800
- net.ipv4.tcp_max_syn_backlog = 262144
- net.ipv4.tcp_timestamps = 0
- net.ipv4.tcp_synack_retries = 1
- net.ipv4.tcp_syn_retries = 1
- net.ipv4.tcp_tw_recycle = 1
- net.ipv4.tcp_tw_reuse = 1
- net.ipv4.tcp_mem = 94500000 915000000 927000000
- net.ipv4.tcp_fin_timeout = 1
- net.ipv4.tcp_keepalive_time = 30
- net.ipv4.ip_local_port_range= 1024 65000
- [root@localhost ~]# ulimit -n
- 1024
- * soft nofile 65535
- * hard nofile 65535
- * soft noproc 65535
- * hard noproc 65535
- [root@localhost ~]#yum -y install libxml2-devel libcurl-devel openssl-devel bzip2-devel
- [root@localhost ~]#tar zxf libmcrypt-2.5.7.tar.gz
- [root@localhost ~]# cd libmcrypt-2.5.7/
- [root@localhost libmcrypt-2.5.7]# ./configure --prefix=/usr/local/libmcrypt && make && make install
- [root@localhost ~]#tar zxf php-5.6.27.tar.gz
- [root@localhost ~]# cd php-5.6.27/
- [root@localhost php-5.6.27]# ./configure --prefix=/usr/local/php5.6 --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl --enable-fpm --enable-sockets --enable-sysvshm --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --with-mhash --with-mcrypt=/usr/local/limcrypt --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-bz2--enable-maintainer-zts && make && make install
- [root@localhost php-5.6.27]#cp php.ini-production /etc /php.ini
- [root@localhost php-5.6.27]#cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
- [root@localhost php-5.6.27]#chmod +x /etc/init.d/php-fpm
- [root@localhost php-5.6.27]#chkconfig --add php-fpm
- [root@localhost php-5.6.27]#chkconfig php-fpm on
- [root@localhost php-5.6.27]#cp /usr/local/php5.6/etc/php-fpm.conf.default /usr/local/php5.6/etc/php-fpm.conf
- [root@localhost php-5.6.27]#vi /usr/local/php5.6/etc/php-fpm.conf
- pid = run/php-fpm.pid
- listen = 0.0.0.0:9000
- pm.max_children =300
- pm.start_servers =20
- pm.min_spare_servers = 20
- pm.max_spare_servers= 100
- [root@localhost php-5.6.27]#service php-fpm start
- Starting php-fpm done
- [root@localhost php-5.6.27]# netstat -anpt | grep php-fpm
- tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 33807/php-fpm: mast
- [root@localhost php-5.6.27]#firewall-cmd --permanent --add-port=9000/tcp
- success
- [root@localhost php-5.6.27]#firewall-cmd --reloadl
- success
- location ~ .*\.(php|php5)?$ {
- root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi.conf;
- fastcgi_cache cache_fastcgi;
- fastcgi_cache_valid 200 302 1h;
- fastcgi_cache_valid 301 1d;
- fastcgi_cache_valid any 1m;
- fastcgi_cache_min_uses 1;
- fastcgi_cache_use_stale errortimeout invalid_header http_500;
- fastcgi_cache_keyhttp://$host$request_uri;
- }
- user www www;
- worker_processes 4;
- worker_cpu_affinity 0001 0010 0100 1000;
- error_log logs/error.log;
- #error_log logs/error.log notice;
- #error_log logs/error.log info;
- pid logs/nginx.pid;
- events {
- use epoll;
- worker_connections 65535;
- multi_accept on;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- #log_format main '$remote_addr - $remote_user [$time_local]"$request" '
- # '$status$body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
- sendfile on;
- tcp_nopush on;
- keepalive_timeout 65;
- tcp_nodelay on;
- client_header_buffer_size 4k;
- open_file_cache max=102400 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 1;
- client_header_timeout 15;
- client_body_timeout 15;
- reset_timedout_connection on;
- send_timeout 15;
- server_tokens off;
- client_max_body_size 10m;
- fastcgi_connect_timeout 600;
- fastcgi_send_timeout 600;
- fastcgi_read_timeout 600;
- fastcgi_buffer_size 64k;
- fastcgi_buffers 4 64k;
- fastcgi_busy_buffers_size 128k;
- fastcgi_temp_file_write_size 128k;
- fastcgi_temp_path/usr/local/nginx1.10/nginx_tmp;
- fastcgi_intercept_errors on;
- fastcgi_cache_path /usr/local/nginx1.10/fastcgi_cache levels=1:2keys_zone=cache_fastcgi:128m inactive=1d max_size=10g;
- gzip on;
- gzip_min_length 2k;
- gzip_buffers 4 32k;
- gzip_http_version 1.1;
- gzip_comp_level 6;
- gzip_types text/plain text/csstext/javascript application/json application/javascriptapplication/x-javascript application/xml;
- gzip_vary on;
- gzip_proxied any;
- server {
- listen 80;
- server_name www.benet.com;
- #charset koi8-r;
- #access_log logs/host.access.log main;
- location ~* ^.+\.(jpg|gif|png|swf|flv|wma|wmv|asf|mp3|mmf|zip|rar)$ {
- valid_referers none blocked www.benet.com benet.com;
- if ($invalid_referer) {
- #return 302 https://a5img.pncdn.cn/2017/0323/1490259868552.jpg;
- return 404;
- break;
- }
- access_log off;
- }
- location / {
- root html;
- index index.php index.html index.htm;
- }
- location ~* \.(ico|jpe?g|gif|png|bmp|swf|flv)$ {
- expires 30d;
- #log_not_found off;
- access_log off;
- }
- location ~* \.(js|css)$ {
- expires 7d;
- log_not_found off;
- access_log off;
- }
- location = /(favicon.ico|roboots.txt) {
- access_log off;
- log_not_found off;
- }
- location /status {
- stub_status on;
- }
- location ~ .*\.(php|php5)?$ {
- root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi.conf;
- fastcgi_cache cache_fastcgi;
- fastcgi_cache_valid 200 3021h;
- fastcgi_cache_valid 301 1d;
- fastcgi_cache_valid any 1m;
- fastcgi_cache_min_uses 1;
- fastcgi_cache_use_stale errortimeout invalid_header http_500;
- fastcgi_cache_keyhttp://$host$request_uri;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
- }
- [root@localhost ~]# /usr/local/nginx1.10/sbin/nginx -s reload
- [root@centos1 ~]# cat/var/www/html/index.html
- >lianjie
- [root@localhost ~]# tree /usr/local/nginx1.10/html/
- /usr/local/nginx1.10/html/
- ├── 11.gif
- ├── 50x.html
- ├── img
- │ └── nolink.jpg
- ├── index.html
- ├── test.php
- [root@localhost ~]# yum -y install httpd-tools
- [root@localhost ~]# ab -c 500 -n 50000 http://192.168.129.150/index.html
- This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
- Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
- Licensed to The Apache Software Foundation, http://www.apache.org/
- Benchmarking 192.168.129.150 (be patient)
- Completed 5000 requests
- Completed 10000 requests
- Completed 15000 requests
- Completed 20000 requests
- Completed 25000 requests
- Completed 30000 requests
- Completed 35000 requests
- Completed 40000 requests
- Completed 45000 requests
- Completed 50000 requests
- Finished 50000 requests
- Server Software: IIS
- Server Hostname: 192.168.129.150
- Server Port: 80
- Document Path: /index.html
- Document Length: 612 bytes
- Concurrency Level: 500
- Time taken for tests: 3.607 seconds
- Complete requests: 50000
- Failed requests: 0
- Write errors: 0
- Total transferred: 41800000 bytes
- HTML transferred: 30600000 bytes
- Requests per second: 13862.78 [#/sec] (mean)
- Time per request: 36.068 [ms] (mean)
- Time per request: 0.072 [ms] (mean, across all concurrent requests)
- Transfer rate: 11317.66 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 16 25.5 15 1013
- Processing: 4 18 4.1 18 71
- Waiting: 1 14 4.3 12 36
- Total: 17 34 25.7 34 1032
- Percentage of the requests served within a certain time (ms)
- 50% 34
- 66% 35
- 75% 35
- 80% 36
- 90% 37
- 95% 37
- 98% 38
- 99% 64
- 100% 1032 (longest request)
- [root@localhost ~]# ab -c 1000 -n 100000 http://192.168.129.150/index.html
- This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
- Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
- Licensed to The Apache Software Foundation, http://www.apache.org/
- Benchmarking 192.168.129.150 (be patient)
- Completed 10000 requests
- Completed 20000 requests
- Completed 30000 requests
- Completed 40000 requests
- Completed 50000 requests
- Completed 60000 requests
- Completed 70000 requests
- Completed 80000 requests
- Completed 90000 requests
- Completed 100000 requests
- Finished 100000 requests
- Server Software: IIS
- Server Hostname: 192.168.129.150
- Server Port: 80
- Document Path: /index.html
- Document Length: 612 bytes
- Concurrency Level: 1000
- Time taken for tests: 7.332 seconds
- Complete requests: 100000
- Failed requests: 0
- Write errors: 0
- Total transferred: 83600000 bytes
- HTML transferred: 61200000 bytes
- Requests per second: 13638.90 [#/sec] (mean)
- Time per request: 73.320 [ms] (mean)
- Time per request: 0.073 [ms] (mean, across all concurrent requests)
- Transfer rate: 11134.88 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 40 114.5 27 1046
- Processing: 7 32 9.4 33 237
- Waiting: 1 24 8.8 23 232
- Total: 29 72 115.3 62 1075
- Percentage of the requests served within a certain time (ms)
- 50% 62
- 66% 69
- 75% 71
- 80% 72
- 90% 75
- 95% 76
- 98% 80
- 99% 1056
- 100% 1075 (longest request)
- wget #下载
- [root@localhost ~]#tar zxfxcache-3.2.0.tar.gz #解压
- [root@localhost ~]# cd xcache-3.2.0/ #进入安装目录
- [root@localhost xcache-3.2.0]# /usr/local/php5.6/bin/phpize#用phpize生成configure配置文件
- [root@localhost xcache-3.2.0]# ./configure --enable-xcache --enable-xcache-coverager --enable-xcache-optimizer --with-php-config=/usr/local/php5.6/bin/php-config #配置
- [root@localhost xcache-3.2.0]# make && make install #编译、安装
- Installing sharedextensions: /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
- # touch /tmp/xcache
- # chmod 777 /tmp/xcache
- [root@localhost xcache-3.2.0]# cp -r htdocs/ /usr/local/nginx1.10/html/xcache
- [xcache-common]
- extension =/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/xcache.so
- [xcache.admin]
- xcache.admin.enable_auth = Off
- [xcache]
- xcache.shm_scheme ="mmap"
- xcache.size=60M
- xcache.count =1
- xcache.slots =8K
- xcache.ttl=0
- xcache.gc_interval =0
- xcache.var_size=64M
- xcache.var_count =1
- xcache.var_slots =8K
- xcache.var_ttl=0
- xcache.var_maxttl=0
- xcache.var_gc_interval =300
- xcache.test =Off
- xcache.readonly_protection = Off
- xcache.mmap_path="/tmp/xcache"
- xcache.coredump_directory =""
- xcache.cacher =On
- xcache.stat=On
- xcache.optimizer =Off
- [xcache.coverager]
- xcache.coverager =On
- xcache.coveragedump_directory=""
- [root@localhost xcache-3.2.0]# ab -c 1000 -n 100000 http://192.168.129.150/test.php
- This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
- Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
- Licensed to The Apache Software Foundation, http://www.apache.org/
- Benchmarking 192.168.129.150 (be patient)
- Completed 10000 requests
- Completed 20000 requests
- Completed 30000 requests
- Completed 40000 requests
- Completed 50000 requests
- Completed 60000 requests
- Completed 70000 requests
- Completed 80000 requests
- Completed 90000 requests
- Completed 100000 requests
- Finished 100000 requests
- Server Software: IIS
- Server Hostname: 192.168.129.150
- Server Port: 80
- Document Path: /test.php
- Document Length: 16 bytes
- Concurrency Level: 1000
- Time taken for tests: 7.031 seconds
- Complete requests: 100000
- Failed requests: 0
- Write errors: 0
- Non-2xx responses: 100000
- Total transferred: 20000000 bytes
- HTML transferred: 1600000 bytes
- Requests per second: 14223.52 [#/sec] (mean)
- Time per request: 70.306 [ms] (mean)
- Time per request: 0.070 [ms] (mean, across all concurrent requests)
- Transfer rate: 2778.03 [Kbytes/sec] received
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 39 133.7 20 1035
- Processing: 4 27 12.4 26 238
- Waiting: 0 20 9.6 18 227
- Total: 17 65 135.7 50 1254
- Percentage of the requests served within a certain time (ms)
- 50% 50
- 66% 54
- 75% 57
- 80% 59
- 90% 62
- 95% 65
- 98% 213
- 99% 1047
- 100% 1254 (longest request)