日志分析 第三章 安装前准备及系统初始化

服务器版本及硬件配置

操作系统 CentOS release 6.5 (Final)
内核版本 2.6.32-431.el6.x86_64
CPU  Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
内存 16G
网卡 eth0 外网卡 eth1 内网卡

 

 

 

 

 

软件版本信息

软件 版本号
filebeat 1.2.3
logstash 2.3.4
elasticsearch 2.3.5
grafana 3.1.1

 

 

 

 

主机规划

IP 安装软件 功能
10.80.2.xxx filebeat 安装在后端服务器上,收集日志数据
10.80.2.181 logstash 安装在服务端,对日志数据分析处理

10.80.2.83 

10.80.2.84

elasticsearch 两台es集群
10.80.2.156 grafana,nginx,mysql Grafana,nginx,mysql

 

 

 

 

 

 

关闭selinux及iptables

1 # sed -i "s@SELINUX=enforcing@SELINUX=pemissive@g" /etc/selinux/config
2 # setenforce 0
3 # /etc/init.d/iptables stop
4 # chkconfig --del iptables
5 # chkconfig iptables off

设置文件描述符个数

 1 # echo "fs.file-max = 65536" >> /etc/sysctl.conf
 2 # sysctl –p
 3 # cat << EOF >> /etc/security/limits.conf 
 4 *          soft     nproc          65536
 5 *          hard     nproc          65536
 6 *          soft     nofile         65536
 7 *          hard     nofile         65536
 8 EOF
 9 
10 # cat << EOF >> /etc/security/90-nproc.conf
11 *          soft     nproc          65536
12 *          hard     nproc          65536
13 *          soft     nofile         65536
14 *          hard     nofile         65536
15 EOF

定时任务同步时间

1 */30 * * * * /usr/sbin/ntpdate 10.80.2.248 > /dev/null

 

posted @ 2016-11-25 15:58  hexm  阅读(607)  评论(0编辑  收藏  举报
联系我:xiaoming.unix@gmail.com