one fine day we were unabe to access app1 and app2 using proxy, when we checked logs we found following error in error_log (/etc/httpd/logs/error_log)...
分类:
其他好文 时间:
2014-09-15 11:12:08
阅读次数:
220
编译安装httpd-2.4.4在编译httpd-2.4.4之前,我们来讨论一下httpd是如何实现和php来交互的?当一个客户端发送一个web请求,如果这个request是请求的一个静态页面,那么httpd就直接从服务器加载静态内容返回给客户端;如果请求的是一个动态内容,例如请求的是一个php页面,那么h..
分类:
其他好文 时间:
2014-09-15 03:20:39
阅读次数:
274
先要解决一下httpd-devel依赖库问题yum install cyrus-sasl-devel db4-devel openldap apr apr-util apr-util-develpcre-devel手动安装:官网http://cn2.php.net/manual/zh/book.ap...
分类:
Web程序 时间:
2014-09-14 23:16:57
阅读次数:
319
安装php:yum -y install php重启httpd服务激活php:/etc/init.d/httpd restart测试php是否安装完成vim /var/www/html/info.php安装php的组件:搜索php组件:yum search php安装常用组件:yum -y inst...
分类:
Web程序 时间:
2014-09-14 17:59:47
阅读次数:
454
Shell判断文件是否存在 #!/bin/sh#shell判断文件,目录是否存在或者具有权限myPath="/var/log/httpd/"myFile="/var /log/httpd/access.log" # 这里的-x 参数判断$myPath是否存在并且是否具有可执行权限if [ ! -x ...
分类:
其他好文 时间:
2014-09-14 12:50:47
阅读次数:
136
1.事先建立两个域名站点 分别建立web1和web2站点,分别建立主页面web1.html和web2.html;2.在httpd.conf文件中启用httpd-vhosts.conf 去掉#,即#Virtual hosts (虚拟主机)Include conf/extra/httpd-vhost.....
分类:
其他好文 时间:
2014-09-12 20:33:34
阅读次数:
212
1、查看是否有mod_proxy_http.so、mod_proxy_balancer.so、mod_proxy.so三个模块#ll/usr/local/apache2/modules2、加载模块#cd/usr/local/src/httpd-2.2.23/modules/proxy/#/usr/local/apache2/bin/apxs-c-imod_proxy.cproxy_util.c#/usr/local/apache2/bin/apxs-c-imod_proxy_..
分类:
其他好文 时间:
2014-09-12 17:24:24
阅读次数:
176
今天重新调整了下配置文件,之前的apache_errorlog未匹配到clientip。1.首先修改shipper.confinput{
file{
type=>"apache-accesslog"
path=>"/var/log/httpd/access_log"
}
file{
type=>"apache-errorlog"
path=>"/var/log/httpd/error_log"
}
}
filter{
if[type..
分类:
其他好文 时间:
2014-09-12 17:24:04
阅读次数:
786
nagios+centreon配置 1.配置centreton web ①.启动服务: chkconfig httpd on chkconfig mysqld on chkconfig --add ndo2db chkconfig ndo2db on chkconfig --add nagios chkconfig nagios on /etc/init.d/httpd...
分类:
移动开发 时间:
2014-09-12 15:31:34
阅读次数:
410
源码编译安装程序包从步骤并不复杂,实际安装过程中最主要的就是准备好编译环境;根据自己的实际需求,选择或设置程序包编译参数;以及程序包安装后的相关配置。1.编译环境准备以CentOS6为例,一般通过yum安装2个包组,编译工具,以及编译程序包依赖的主要的头文件和库文件就都..
分类:
其他好文 时间:
2014-09-11 17:32:12
阅读次数:
294