随笔分类 -  Centos

摘要:centos7安装Prometheus 1、下载 地址:https://prometheus.io/download/#prometheus 选择一个,然后直接下载,例如 2.37版本,下载后拷贝到centos7机器中,也可以直接在centos7中使用wget命令直接下载 wget https:// 阅读全文
posted @ 2022-08-25 14:22 南风丶轻语 阅读(399) 评论(0) 推荐(0) 编辑
摘要:centos7安装node export 1、下载 地址:https://prometheus.io/download/#node_exporter 选择一个,然后直接下载,例如 1.3.1版本,下载后拷贝到centos7机器中,也可以直接在centos7中使用wget命令直接下载 wget htt 阅读全文
posted @ 2022-08-25 11:39 南风丶轻语 阅读(785) 评论(0) 推荐(0) 编辑
摘要:Navicat使用HTTP通道连接远程服务器的SQLite文件(包含服务端搭建http服务) 基本原理 数据库端口没开放外网访问的时候,Navicat在外网无法访问数据库。 可以通过在服务器上运行PHP服务,配合官方的ntunnel_sqlite.php脚本进行连接数据库。 ntunnel_sqli 阅读全文
posted @ 2022-08-23 15:02 南风丶轻语 阅读(7054) 评论(0) 推荐(0) 编辑
摘要:Prometheus学习之AlertManager报警的使用(Centos7环境) 1、下载、解压、启动 网址:Prometheus官网 例如下载0.24.0版本并启动(启动可以自己配置为服务启动) wget https://github.com/prometheus/alertmanager/re 阅读全文
posted @ 2022-08-19 10:55 南风丶轻语 阅读(422) 评论(0) 推荐(0) 编辑
摘要:centos7安装alertmanager 1、下载 地址:https://prometheus.io/download/ 例如 0.24.0版本(直接wget下载或者Windows下载好后拷贝进去Linux) wget https://github.com/prometheus/alertmana 阅读全文
posted @ 2022-07-28 17:36 南风丶轻语 阅读(783) 评论(0) 推荐(1) 编辑
摘要:centos7安装consul 1、在线下载consul 官网地址:https://www.consul.io/downloads 在线安装consul sudo yum install -y yum-utils && sudo yum-config-manager --add-repo https 阅读全文
posted @ 2022-07-22 16:56 南风丶轻语 阅读(466) 评论(0) 推荐(0) 编辑
摘要:centos7安装Grafana 1、下载 下载指引 :https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1 wget https://dl.grafana.com/enterprise/release/gra 阅读全文
posted @ 2022-07-21 11:37 南风丶轻语 阅读(1461) 评论(0) 推荐(0) 编辑
摘要:CentOS7下systemctl添加自定义服务 一、服务文件位置 CentOS7的服务systemctl脚本存放在/usr/lib/systemd/下,有系统和用户之分 需要开机不登陆就能运行的程序,存在系统服务里,路径:/usr/lib/systemd/system 登陆后才可以运行的程序,存在 阅读全文
posted @ 2022-07-05 18:23 南风丶轻语 阅读(5145) 评论(0) 推荐(0) 编辑
摘要:CentOS7 在线升级git版本 CentOS7上的Git版本默认是1.8,感觉有点低,需要升级一下 #git --version git version 1.8.3.1 执行以下命令升级 yum remove git yum install -y https://packages.endpoin 阅读全文
posted @ 2022-06-30 18:14 南风丶轻语 阅读(155) 评论(0) 推荐(0) 编辑
摘要:使用Putty或者MobaXterm连接Centos7的ssh无响应 现象: 使用putty或者MobaXterm连接ssh时,长时间未响应,如图 解决思路: 以连接 为例 1、先ping一下,ping通才可以连接 2、关闭防火墙,再次连接试一试,可能是防火墙没有添加该服务,或者没有暴露端口 查看防 阅读全文
posted @ 2022-06-20 10:32 南风丶轻语 阅读(1317) 评论(0) 推荐(0) 编辑
摘要:Centos7 firewalld防火墙基本使用 firewalld主要是在centos7以后才作为默认的防火墙管理工具的 firewalld有一个zone(域)的概念,每一个zone可以有自己规则,使用不同的zone就可以过滤不同的网络请求。 ### 1、获取所有的域zones ``` firew 阅读全文
posted @ 2022-06-16 16:50 南风丶轻语 阅读(455) 评论(0) 推荐(0) 编辑
摘要:Centos7 配置静态IP 1. 查看网卡的名称 使用ip a命令查看即可 可以看出网卡名称是ens3,则可以推断出网卡配置文件为cat /etc/sysconfig/network-scripts/ifcfg-ens3 2. 查看默认网关 如果未修改前已经通过dhcp获取到IP了,此时可以上网, 阅读全文
posted @ 2022-06-15 18:34 南风丶轻语 阅读(880) 评论(0) 推荐(0) 编辑
摘要:Centos7配置开机自启动脚本 chmod +x /etc/rc.d/rc.local 将命令写到 /etc/rc.d/rc.local 这个文件中 reboot 例如 阅读全文
posted @ 2022-06-13 14:10 南风丶轻语 阅读(80) 评论(0) 推荐(0) 编辑
摘要:Centos镜像国内下载地址参考 CentOS 官方下载地址 https://www.centos.org/download/ Centos国内下载源 http://mirrors.cn99.com/centos/7/isos/x86_64/ http://mirrors.sohu.com/cent 阅读全文
posted @ 2022-06-11 10:50 南风丶轻语 阅读(1743) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示