搭建kpatch builder 以centos7.2为例。 默认centos7.2的安装的内核版本是3.10.0-327.el7.x86_64,这个内核版本当初是通过gcc 4.8.3编译的。 而centos7.2自带gcc rpm包的版本则是4.8.5 kpatch build命令执行的时候,首先检查gcc的版本是否一致, 因为两者的版...
经常需要配置Nginx ,其中有许多以 $ 开头的变量,经常需要查阅nginx 所支持的变量。Nginx支持的http变量实现在 ngx_http_variables.c 的 ngx_http_core_variables存储实现: ngx_http_core_variables static ngx_http_variable_t ngx_http_core_variables[]...
原文地址:http://my.oschina.net/hyperichq/blog/405421 常用优化要点 当nginx用于反向代理时,每个客户端将使用两个连接: 一个用于响应客户端的请求,另一个用于到后端的访问; 如果机器是两核CPU,例如: 1 2 $grep^proces/proc/cpuinfo|wc-l2 那么,可...
1. Apache Yii is ready to work with a default Apache web server configuration. The .htaccess files in Yii framework and application folders restrict access to the restricted resources. To hide the bootstrap file (usually index.php) in your...
1、编译安装过程优化 在编译Nginx时,默认以debug模式进行,而在debug模式下会插入很多跟踪和ASSERT之类的信息,编译完成后,一个Nginx要有好几兆字节。在编译前取消Nginx的debug模式,编译完成后Nginx只有几百千字节,因此可以在编译之前,修改相关源码,取...
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #error_log /usr/local/var/log/nginx/error.log warn; #pid logs/nginx.pid; #pid /usr/local/var/run/nginx.pid; even...
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #error_log /usr/local/var/log/nginx/error.log warn; #pid logs/nginx.pid; #pid /usr/local/var/run/nginx.pid; event...
Docker v1.13.1-rc1 发布了。注:Docker v1.13.1 正式版预计将于 2017.2.6 发布。 重要信息:在 Docker 1.13 中,托管插件 api 发生了变化,与实验相比,该版本在 Docker 1.12 中引入。 您必须卸载使用 Docker 1.12 安装的插件,然后升级到 Docker 1.13。 您...
1、安装 nginx要安装http_ssl_module模块,需要OpenSSL库和相关的开发包,因此在安装前,必须安装这些支持 在centos系统下,直接用yum安装即可:# yum install openssl openssl-devel 编译nginx # tar -zxvf pcre-8.12.tar.gz # cd pcre-8.12 # ./configure pr...
#!/bin/sh IPTABLES=/sbin/iptables # clear $IPTABLES -F # if pkg type is allow, then accept #$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # 如果同时在80端口的连接数大于10,就Drop掉这个ip netstat -an | grep :80 | awk -F:...