
http启动脚本server篇
#!/bin/bash## httpdStartup script for the Apache HTTP Server## chkconfig: 345 61 61# description: Apache is a Wo
#!/bin/bash## httpdStartup script for the Apache HTTP Server## chkconfig: 345 61 61# description: Apache is a Wo
服务器的 Apache 信息如果被探测会带来安全隐患,如下图:在 http 头部信息也可以看到服务器及 Apache 版本信息因此作为服务器加固的一个部分,建议禁止网站服务器返回版本信息。解决方案禁用 Apache 网站服务器签名可以通过编辑 Apache 配置文件来实现。注意:这里以常见的配置文件位置为例(用户应以实际的配置文件路径为准
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@l
吧httpd加到系统开机启动项中,解决重启后自动重启服务apache 作为linux启动就运行服务程序# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd在执行:# chkconfig --add httpd# chkconfig httpd on报错:service h
Linux 工具:下载地址:get_cpu_mem_info_sh.rar使用方法:下载该文件解压后,上传到 /tmp 目录中。运行 cd 切换到/tmp目录。执行: nohup bash get_cpu_mem_info.sh &该工具会在 /tmp 目录下生成一个日志文件,记录实时监控系统的 CPU、内存的使用情况,等到系统异
一、新建个站点# mkdir -p /home/www/400 //站点目录存放地址二、新建配置文件<VirtualHost *:80> DocumentRoot /home/www/400 ServerName localhost</VirtualHost>注:在所以站点配置前面加上这句保存vi /home
Linux 服务器访问路径都是区分大小写的,那么搭建了 Apache 后访问 www.abc.com/Index.html 和 www.abc.com/index.html 访问的路径是不一样的,如下图所示,实际首页是 Index.html:处理办法:要解决这个问题,需要使用使用 Apache 的 mod_speling 模块1、全新编译
安装mysql篇[root@o20151011011688 ~]# yum install mysql mysql-server[root@o20151011011688 ~]# chkconfig --levels 235 mysqld on[root@o20151011011688 ~]# /etc/init.d/mysqld st
首先需要确定是哪一张网卡的带宽跑满,可以通过sar -n DEV 1 5 命令来获取网卡级别的流量图,命令中 1 5 表示每一秒钟取 1 次值,一共取 5 次。命令执行后会列出每个网卡这 5 次取值的平均数据,根据实际情况来确定带宽跑满的网卡名称,默认情况下 eth0 为内网网卡,eth1 为外网网卡使用 iftop 工具排查1、服务器内
在本地虚拟机安装了CentOS,内网传输数据和ssh登陆都非常的慢解决办法经过排查发现是服务器内ssh的配置文件设置导致。/etc/ssh/sshd_config配置文件中的UseDNS设置为yes,修改为no。
Linux监控平台介绍cacti、nagios、zabbix、smokeping、open-falcon等等cacti、smokeping偏向于基础监控,成图非常漂亮cacti、nagios、zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者
LVS DR模式搭建1.准备工作DR模式同样需要三台虚拟机,三台机器只需要有“公网”IP,但在这种模式下又多了一个VIP。三台机器调度器ip:192.168.5.5真实服务器rs1:192.168.5.6真实服务器rs2:192.168.5.9vip:192.168.5.10dir上编写脚本 vim /usr/local/sbin/lvs
告警系统邮件引擎[root@ahao01 mail]# vi mail.py#!/usr/bin/env python#-*- coding: UTF-8 -*-import os,sysreload(sys)sys.setdefaultencoding('utf8')import getoptimport smtplib