- 博客(9)
- 收藏
- 关注
原创 ubuntu16配置ssh,Permission denied
ubuntu16配置ssh遇到Permission denied, please try again.试过了网上所有的办法sudo apt-get install openssh-servernano /etc/ssh/sshd_config在文件中找到PermitRootLogin 修改为yes,取消注释PermitRootLogin yes然后重启服务/etc/init.d/ssh restart等一系列办法吧。最后抓包才发现原来是没有配置root用户试试su能不能进入ro
2020-09-18 20:47:27 416 1
转载 ubuntu16.04联网问题
https://blog.csdn.net/qq_32623363/article/details/95492527就尼玛离谱,试了各种方法都上不去网,恢复默认设置就OK了。。。
2020-05-06 10:20:45 477
原创 安装promrtheus,gafana,ceph_expoter
先下载安装包[root@ops001 ~]# wget https://github.com/prometheus/prometheus/releases/download/v2.4.3/prometheus-2.4.3.linux-amd64.tar.gz[root@ops001 ~]# wget https://github.com/prometheus/alertmanager/rele...
2020-02-22 22:03:03 435
原创 ubuntu改静态ip
ifconfig得到网卡名字为enp2s0sudo vim /etc/network/interfaces向其中添加下图第二个框中的内容,并注释掉第一个框的内容保存退出后重启网卡sudo service networking restart如果还不行,重启一下电脑即可...
2020-01-11 20:43:49 151
转载 socket中recv跟recvfrom,send跟sendto
recv和send函数用于tcp传输recvfrom和sendto用于udp传输recv和send函数提供了和read和write差不多的功能。不过它们提供了第四个参数来控制读写操作。UDP套接字是无连接协议,必须使用sendto函数发送数据,必须使用recvfrom函数接收数据,发送时需指明目的地址。sendto函数与send功能基本相同,recvfrom与recv功能基本相同,只不过...
2019-11-26 13:46:25 1294 1
原创 pushgateway
pushgateway是另⼀种采⽤被动推送的⽅式(⽽不是exporter主动获取)获取监控数据的prometheus 插件,监控可以自定义bash shell python脚本pushgateway的存在是为了允许临时任务和批处理作业向Prometheus传送数据,因为这些工作可能存在的时间不够长,导致prometheus还没来得及去抓取数据,工作就结束了,因此可以存在pushgateway中,...
2019-11-20 18:59:16 1701 1
原创 promrtheus信息的存储方式
有本地存储,远端存储两种本地存储即通过时序数据库(TSDB)存在本地,可以实现高性能的读写,大门时存储容量有限核心是block和WAL。TSDB按照时间间隔分隔成block,其大小不固定,默认的最小的是2h,TSDB会自动把小的block合成大的,block主要包含chunks,index,meta.json,tombstones四个部分chunks用来保存压缩后的时序数据,512mb每...
2019-11-19 09:57:11 328
原创 Centos 7 部署 Prometheus、Alertmanager、Grafana 监控 Linux 主机
https://www.jianshu.com/p/e59cfd15612e按照这个链接步骤操作没问题但注意常用的话,设置开机启动会很方便[root@prometheus ~]# systemctl enable prometheus[root@prometheus ~]# systemctl start prometheus[root@prometheus ~]# systemctl ...
2019-10-26 15:14:37 475
原创 CentOS7修改静态IP
1.修改 /etc/sysconfig/network-scripts/ifcfg-enp0s3文件修改BOOTPROTO为static修改ONBOOT为yes然后写出IP/GATEWAY/NETMASK/DNS2.重启网卡service network restart
2019-10-21 14:27:37 124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人