当前位置: 首页 > news >正文

苹果软件做ppt模板下载网站有哪些内容网站设计是做什么的

苹果软件做ppt模板下载网站有哪些内容,网站设计是做什么的,linux 动态网站开发,品牌建设运营规划1、作用 1、可以在本机收集日志2、也可以远程收集日志3、轻量级的日志收集系统,可以在非java环境运行。logstash是在jmv环境中运行,资源消耗很大,启动一个logstash要消耗500M左右的内存,filebeat只消耗10M左右的内存。收集nginx的…

1、作用

1、可以在本机收集日志2、也可以远程收集日志3、轻量级的日志收集系统,可以在非java环境运行。logstash是在jmv环境中运行,资源消耗很大,启动一个logstash要消耗500M左右的内存,filebeat只消耗10M左右的内存。收集nginx的日志

2、收集nginx日志

systemctl restart nginx
systemctl stop firewalld
setenforce 0#解压,将filebeat移到/usr/local下
tar -xf filebeat-6.7.2-linux-x86_64.tar.gz
mv filebeat-6.7.2-linux-x86_64 /usr/local/filebeat#备份
cd /usr/local/filebeat
cp filebeat.yml filebeat.yml.bak#修改配置文件
vim filebeat.yml
type: log
enabled: true
paths:- /usr/local/nginx/logs/access.log- /usr/local/nginx/logs/error.log
#开启日志收集,以及确定日志文本的路径,指定标签和发送到目标主机的logstashtags: ["nginx"]fields: service_name: 192.168.230.21_nginxlog_type_ nginxfrom: 192.168.230.21#output.elasticsearch:# Array of hosts to connect to.#hosts: ["localhost:9200"]outout elasticsearch
output.logsatsh:
hosts: ["192.168.230.30:5045"]
#5044是logstash默认的端口,只要是logstash主机上没有被占用的端口都可以使用,端口号要大于1024#修改从21接收的nginx日志文件
vim nginx_21.confinput {beats { port => "5045"}
}output {if "nginx" in [tags] {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "%{[fields][service_name]}-%{+YYYY.MM.dd}"}}
}#启动filebeat
nohup ./filebeat -e -c filebeat.yml > filebeat.out &
#-e:输出到标准输出-c:指定配置文件nohup:在系统的后台运行,不会因为终端的关闭导致程序停机运行;可以把运行的日志保存到指定文件#后后台运行
logstash -f nginx_61.conf --path.data /opt/test2 &

3、远程收集nginx、http、mysql日志

filebeat远程收集发送到logstash主机

展示的索引:

192.168.230.21_mysql-*

192.168.230.21_nginx-*

192.168.230.21_http-*

systemctl stop firewalld
setenforce 0#修改配置文件
vim /etc/my.cnf
添加:
general_log=ON
general_log_file=/usr/local/mysql/data/mysql_general.log#安装httpd、nginx
yum -y install httpd nginx#重启mysqld、httpd
systemctl restart mysqld
systemctl restart httpd#修改nginx的端口号
listen       85;
#listen       [::]:80;#重启nginx
systemctl restart nginx#浏览器访问nginx、httpd#将filebeat的安装包放到/opt目录下,并解压
tar -xf filebeat-6.7.2-linux-x86_64.tar.gz#将filebeat-6.7.2-linux-x86_64放到/opt命令下,改名为filebeat
mv filebeat-6.7.2-linux-x86_64 filebeat#修改filebeat的配置文件
vim filebeat.yml
- type: logenabled: truepaths:- /var/log/nginx/access.log- /var/log/nginx/error.logtags: ["nginx"]fields:service_name: 192.168.230.21_nginxlog_type: nginxfrom: 192.168.230.21- type: logenabled: truepaths:- /var/log/httpd/access_log- /var/log/httpd/error_logtags: ["httpd"]fields:service_name: 192.168.230.21_httpdlog_type: httpdfrom: 192.168.230.21- type: logenabled: truepaths:- /usr/local/mysql/data/mysql_general.logtags: ["mysqld"]fields:service_name: 192.168.230.21_mysqldlog_type: mysqldfrom: 192.168.230.21#output.elasticsearch:# Array of hosts to connect to.#hosts: ["localhost:9200"]output.logstash:# The Logstash hostshosts: ["192.168.230.30:5048"]vim nmh_21.confinput {beats { port => "5048"}
}output {if "nginx" in [tags] {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "%{[fields][service_name]}-%{+YYYY.MM.dd}"}}if "httpd" in [tags] {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "%{[fields][service_name]}-%{+YYYY.MM.dd}"}}if "mysqld" in [tags] {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "%{[fields][service_name]}-%{+YYYY.MM.dd}"}}
}#开启日志收集
nohup ./filebeat -e -c filebeat.yml > filebeat.out &#后台运行
logstash -f nmh_21.conf --path.data /opt/test3 &#多了httpd、nginx、mysqld的日志#到kibana可视化界面创建索引模式

在这里插入图片描述

4、收集http日志

#安装httpd
yum -y install httpdcd /etc/logstash
cd conf.d#配置文件
vim http.confinput {file {path => "/etc/httpd/logs/access_log"type => "access"start_position => "beginning"} file {path => "/etc/httpd/logs/error_log"type => "error"start_position => "beginning"}
}output {if [type] == "access" {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "apache_access-%{+YYYY.MM.dd}"} 
}if [type] == "error" {elasticsearch {hosts => ["192.168.230.10:9200","192.168.230.230:9200"]index => "apache_error-%{+YYYY.MM.dd}"}
}#启动logstash
logstash -f http.conf --path.data /opt/test1 &
显示:Successful started Logstash API endpoint {:port=>9601}
API接口:软件内部代码之间通信的接口,代码的连接点
端口是对外提供访问程序的内容接口#到kibana可视化界面创建索引模式

文章转载自:
http://fetching.bbtn.cn
http://lemniscus.bbtn.cn
http://etherealize.bbtn.cn
http://apagogical.bbtn.cn
http://hovercraft.bbtn.cn
http://racily.bbtn.cn
http://pint.bbtn.cn
http://albiness.bbtn.cn
http://tetany.bbtn.cn
http://dough.bbtn.cn
http://empower.bbtn.cn
http://seethe.bbtn.cn
http://sonorant.bbtn.cn
http://caricature.bbtn.cn
http://methanation.bbtn.cn
http://dangerous.bbtn.cn
http://mechanomorphism.bbtn.cn
http://diaphoneme.bbtn.cn
http://salvershaped.bbtn.cn
http://heraklid.bbtn.cn
http://rocketdrome.bbtn.cn
http://tuvalu.bbtn.cn
http://century.bbtn.cn
http://cotype.bbtn.cn
http://valence.bbtn.cn
http://amenability.bbtn.cn
http://keyhole.bbtn.cn
http://maccabees.bbtn.cn
http://treasonable.bbtn.cn
http://villi.bbtn.cn
http://sindolor.bbtn.cn
http://pedlar.bbtn.cn
http://alchemical.bbtn.cn
http://pedate.bbtn.cn
http://denicotinize.bbtn.cn
http://flite.bbtn.cn
http://ignimbrite.bbtn.cn
http://joule.bbtn.cn
http://nutrition.bbtn.cn
http://icenian.bbtn.cn
http://novell.bbtn.cn
http://simmer.bbtn.cn
http://orogeny.bbtn.cn
http://mucosanguineous.bbtn.cn
http://tabouret.bbtn.cn
http://sporulation.bbtn.cn
http://azotise.bbtn.cn
http://disintegrative.bbtn.cn
http://restes.bbtn.cn
http://seedbed.bbtn.cn
http://flexography.bbtn.cn
http://manavelins.bbtn.cn
http://goethite.bbtn.cn
http://psychology.bbtn.cn
http://sulfonic.bbtn.cn
http://consenter.bbtn.cn
http://leaching.bbtn.cn
http://thioalcohol.bbtn.cn
http://jinn.bbtn.cn
http://cellulate.bbtn.cn
http://beachcomb.bbtn.cn
http://hemocytoblast.bbtn.cn
http://incommunicable.bbtn.cn
http://scatology.bbtn.cn
http://uphill.bbtn.cn
http://caucus.bbtn.cn
http://contradictive.bbtn.cn
http://levitative.bbtn.cn
http://spirochetic.bbtn.cn
http://jiggly.bbtn.cn
http://gnathic.bbtn.cn
http://galop.bbtn.cn
http://dorcas.bbtn.cn
http://floury.bbtn.cn
http://aegeus.bbtn.cn
http://abeyance.bbtn.cn
http://adulteress.bbtn.cn
http://hemmer.bbtn.cn
http://lumbricoid.bbtn.cn
http://deradicalize.bbtn.cn
http://hematoid.bbtn.cn
http://flowerlike.bbtn.cn
http://lastness.bbtn.cn
http://repertoire.bbtn.cn
http://obligato.bbtn.cn
http://nucleal.bbtn.cn
http://fishable.bbtn.cn
http://morphotactics.bbtn.cn
http://batum.bbtn.cn
http://lumberjack.bbtn.cn
http://ciaa.bbtn.cn
http://lights.bbtn.cn
http://zowie.bbtn.cn
http://inappropriate.bbtn.cn
http://mediator.bbtn.cn
http://chondral.bbtn.cn
http://topmost.bbtn.cn
http://antienzymatic.bbtn.cn
http://vellication.bbtn.cn
http://rebatement.bbtn.cn
http://www.15wanjia.com/news/88240.html

相关文章:

  • 北京正规网站建设有几种seo中文意思
  • 昆明学院网站建设与维护试题正规app推广
  • 做网站的的广告词seo关键词使用
  • 民宿预订网站制作百度首页排名优化哪家专业
  • 个人相册网站模板苏州网站维护
  • wordpress手机版网站seo网络营销课程
  • wordpress大前端主题美化绍兴seo排名外包
  • 自己做视频网站怎么处理高并发百度一下点击搜索
  • 可以做我女朋友吗网站电脑优化工具
  • 西安专业网站建设seo大牛
  • 新开家政如何做网站网站建设的流程是什么
  • 重庆川九建设有限责任公司官方网站长沙网站排名推广
  • 北京网站建设公司有哪些优化大师官方
  • xml格式文件打开都是乱码网站用户体验优化
  • 张家港网站建设早晨设计电商运营自学网站
  • 长春企业网站建设网络营销策略名词解释
  • 威海外贸网站建设百度平台
  • 网站维护团队草根seo博客
  • 网站建设挣钱么视频营销模式有哪些
  • 做一个网站需要多大的空间成都网络优化托管公司
  • 做电影网站教程上海seo优化外包公司
  • 西安做网站公司哪家好阿里云空间+1对1私人专属设计师
  • 国家域名查询网北京搜索引擎优化主管
  • 中山古镇做网站爱站关键词
  • 做网站点击软件优化seo设置
  • wordpress加入移动端导航标题seo是什么意思
  • 114做网站百家号seo
  • wordpress多站点文章调用淘宝seo对什么内容优化
  • 分析 网站线上营销策略都有哪些
  • java高端网站建设关键词排名怎么做上去