31.openstack简教程

发表于 linux 分类,标签:
1.修改主机名hostnamectlset-hostnamecontrollerbashhostname2.修改第一块网卡vim/etc/sysconfig/network-scripts/ifcfg-eth0BOOTPROTO=staticONBOOT=yesIPADDR=10.10.0.57GATEWAY=10.10.0.1DNS1=8.8.8.83.修改第二块网卡同上,重启网卡systemctlrestartnetwork使用ip-a查看是否生效4.修改内核vim/etc/default/grubGRUB_CMDLINE_LINUX="crashkernel=autobiosdevname=0net.ifnames=0刷新内核grub2-mkconfig-o/boot/grub2/grub.cfgreboot5.第二台服务器同上,无需修改内核compu...

30.bash service command not found

发表于 linux 分类,标签:
bash:service:commandnotfoundcentos系统中,如果/sbin目录下没有service这个命令,就会出现-bash:service:commandnotfound的错误。解决步骤如下:1、输入:yumlist|grepinitscripts会出现initscripts.x86_64             9.49.30-1.el7_2.3      updates2、上面给出了可安装软件的yum源版本。上面是目前系统已安装的initscripts情况,因为没有了service文件,显然已经出现了错误,然后执行yum...

29.OpenStack错误:Error unable to connect to node rabbit@localhost nodedown

发表于 linux 分类,标签:
OpenStack错误:Error:unabletoconnecttonoderabbit@localhost:nodedown问题来源:rabbitmq添加用户失败思考原因1、翻译一下2、解释3、su和su-的区别4、简单解释问题总结问题来源:rabbitmq添加用户失败[root@ct~]#rabbitmqctladd_useropenstackRABBIT_PASSError:unabletoconnecttonoderabbit@localhost:nodedownDIAGNOSTICS===========attemptedtocontact:[rabbit@localhost]rabbit@localhost: *connectedtoepmd(port4369)onlocalhost *...

28.grafana配置

发表于 linux 分类,标签:
grafana一般是和一些时间序列数据库进行配合来展示数据的,例如:Graphite、OpenTSDB、InfluxDB等grafana是用于可视化大型测量数据的开源程序,他提供了强大和优雅的方式去创建、共享、浏览数据。dashboard中显示了你不同metric数据源中的数据。grafana最常用于因特网基础设施和应用分析,但在其他领域也有机会用到,比如:工业传感器、家庭自动化、过程控制等等。grafana有热插拔控制面板和可扩展的数据源,目前已经支持Graphite、InfluxDB、OpenTSDB、Elasticsearch。grafana安装:http://docs.grafana.org/installation/rpm/ grafana后端数据源配置:http://docs.grafana.org/datasources/overview/ grafana...

27.linux日志命令

发表于 linux 分类,标签:
常用Linux日志查看命令推荐【Kafka】https://bigbird.blog.csdn.net/article/details/108770504推荐【Flink】https://blog.csdn.net/hellozpc/article/details/109413465推荐【SpringBoot】https://blog.csdn.net/hellozpc/article/details/107095951推荐【SpringCloud】https://blog.csdn.net/hellozpc/article/details/83692496推荐【Mybatis】https://blog.csdn.net/hellozpc/article/details/80878563推荐【SnowFlake】https://blog.csdn.net/hellozpc/article/...

26.firewall

发表于 linux 分类,标签:
开启一个端口firewall-cmd–zone=public–add-port=80/tcp–permanent重新载入firewall-cmd–reload查看firewall-cmd–zone=public–query-port=80/tcp删除firewall-cmd–zone=public–remove-port=80/tcp–permanent查看已经开放的端口firewall-cmd–list-ports重启防火墙服务systemctlrestartfirewalld.service启动防火墙服务systemctlstartfirewalld查看状态systemctlstatusfirewalld停止防火墙服务systemctlstopfirewalld启动防火墙服务systemctlenablefirewalld禁用防火墙服务sys...

25.cmd指令大全

发表于 linux 分类,标签:
cmd指令大全指令一、启动CMD命令提示符控制器“开始”→“运行”→输入“cmd”回车;或者:win+R(两个键同时按)打开“运行”窗口→输入“cmd”回车。二、小编常用的CMD命令dir:查看文件夹mstsc:打开远程桌面连接。services.msc:打开本地服务设置。notepad:打开记事本。control:打开控制面板。regedit:打开注册列表编辑器。三、WindowsCMD命令大全gpedit.msc-----组策略sndrec32-------录音机Nslookup-------IP地址侦测器,是一个监测网络中DNS服务器是否能正确实现域名解析的命令行工具。它在WindowsNT/2000/XP中均可使用,但在Windows98中却没有集成这一个工具。explorer-------打开资源管理器logoff---------注销命令shutdo...

24.graylog日志分流

发表于 linux 分类,标签:
1.在system中grokpatterns新增BE_logs_message%{GREEDYDATA}ip=%{IPV4:ip}%{SPACE}biz_id=%{GREEDYDATA:biz_id}%{SPACE}ts=%{GREEDYDATA:real_time}%{SPACE}req_id=%{GREEDYDATA:req_id}%{SPACE}msg:%{GREEDYDATA}%{GREEDYDATA}2.ExtractorsofBE-logs{  "extractors": [    {      "title": "runtime", &nbs...

23.解决https代理无css

发表于 linux 分类,标签:
server {       listen 80;       server_name zhzho.com;  #将localhost修改为您证书绑定的域名,例如:www.example.com。       rewrite ^(.*)$ https://$server_name$1 permanent;   #将所有http请求通过rewrite重定向到https。       cli...

22.graylog_indices

发表于 linux 分类,标签:
graylog_indices配置1.在导航栏System/Indices->CreateIndexset,创建一个新索引;2.Selectrotationstrategy选择IndexTime(按时间进行轮转),Rotationperiod轮转的时间为P10D(D代表天,H代表小时,M代表月);3.我们再往下进行定义Index的清理、保留策略。我们选择Selectretentionstrategy为DeleteIndex(删除索引),Maxnumberofindices选择3个。给大家解释一下就是4xx_5xx_log这个索引只保留3个,也就是3x10D,一个月的日志,点击save保存;ISO8601Durationsareexpressedusingthefollowingformat,where(n)isreplaced...