返回顶部
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: Python收集Json格式日志的状态码 Python2 #!/usr/bin/env python #coding:utf-8 status_200= [] status_403= [] with open("/apps/nginx-1.18.0/logs/access_json.log") as 阅读全文
posted @ 2022-03-16 15:46 九尾cat 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Nginx自定义Json日志格式 为配合ELK,EFK使用,需要将web日志格式设置为Json格式。 #vim /apps/nginx-1.18.0/conf/nginx.conf #添加如下json格式 log_format access_json '{"@timestamp":"$time_is 阅读全文
posted @ 2022-03-16 15:34 九尾cat 阅读(348) 评论(0) 推荐(0) 编辑
摘要: nginx: [emerg] unknown directive "echo" 问题现象: #nginx -t nginx: [emerg] unknown directive "echo" in /apps/nginx-1.18.0/conf.d/p.conf:24 nginx: configur 阅读全文
posted @ 2022-03-16 09:58 九尾cat 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: 问题: aix服务器数据库进程报警,收集整理日志进行处理 脚本 AIX日志收集整理脚本,收集一段时间内/proc用户的进程数及目录 收集0点到11点之间日志统计信息 #!/bin/bashTIME1_log () { for i in {00..11};do for j in {00..08};do 阅读全文
posted @ 2022-03-11 15:41 九尾cat 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 安装vmware 报错 failed to install the hcmon driver Win+r,输入regedit 在注册表中,按Ctrl+F,输入VMware,回车; 将查找到的值都删除;按F3可查找下一个; 所有的值都删除之后,重启电脑就可以安装了 或 编写文件 --修复.reg ,双 阅读全文
posted @ 2022-03-08 23:51 九尾cat 阅读(3789) 评论(0) 推荐(0) 编辑
摘要: Centos/redhat 初始化脚本 Centos/Redhat初始化安全加固脚本 #!/bin/bash #******************************************************************** #Author: wei #*********** 阅读全文
posted @ 2022-03-04 10:43 九尾cat 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Linux 打开文件限制及文件描述符限制 ulimit 在 Linux中可以更改打开文件的最大数量。使用ulimit命令,能够控制可用于 shell 或由它启动的进程的资源。 fs.file-max 系统所有进程一共可以打开的文件数量 fs.nr_open 单个进程可分配的最大文件数 #sysctl 阅读全文
posted @ 2022-03-04 09:38 九尾cat 阅读(371) 评论(0) 推荐(0) 编辑
摘要: kubernetes NotReady 部署节点 NotReady #kubectl get nodes NAME STATUS ROLES AGE VERSION centos107 NotReady control-plane,master 41h v1.23.4 centos117 NotRe 阅读全文
posted @ 2022-02-28 11:22 九尾cat 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 查看服务器是物理机还是虚拟机 方式一:dmesg dmesg |grep -i dmi 物理机:[ 0.000000] DMI: Huawei RH5885 V3/BC61BLCB, BIOS BLISV828 6/9/2019 虚拟机:[ 0.000000] DMI: VMware, Inc. V 阅读全文
posted @ 2022-02-25 13:44 九尾cat 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Disable Ctrl-Alt-Del 禁用ctrl-alt-delete,为了防止和其他键盘冲突或误关机,可取消快捷键ctrl+alt+del RHEL 5.X & CentOS 5.X 注释掉 ca::ctrlaltdel# cat /etc/inittab # Trap CTRL-ALT-D 阅读全文
posted @ 2022-02-21 15:45 九尾cat 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 不同操作系统部署nfs报错 nfs-server : Ubuntu1804 nfs-client: CentOS 7.8.2003 报错信息 #mount 10.0.0.212:/data /mnt mount.nfs: Stale file handle #ls /mntls: cannot ac 阅读全文
posted @ 2022-02-15 22:49 九尾cat 阅读(4767) 评论(0) 推荐(0) 编辑
摘要: Centos 7,8 破解root密码 常见的破解root密码,就是进入救援模式或单用户模式进行重置密码,或者进行其他文件系统的修复或者恢复。 可用于修复操作系统,以下是常见的修改密码的三种方法: 方法一: 启动时按任意键暂停启动 按e键进入编辑模式 将光标移动到linux开始行,修改linux16 阅读全文
posted @ 2022-02-12 20:32 九尾cat 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 使用xshell显示调用图形 前提 Xmanager - Passive工具必须存在,xclock会自动调用Xmanager - Passive。并在打开Xmanager Server:0.0 安装依赖包 yum -y install xorg-x11-xauth 修改文件/etc/ssh/sshd 阅读全文
posted @ 2022-02-10 09:49 九尾cat 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 现象 主机无缘无故死机,主机上服务无响应 日志出现大量:"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. 日志输出信息: #tail -f /var/log/messages kernel: "echo 阅读全文
posted @ 2022-02-08 15:51 九尾cat 阅读(6504) 评论(0) 推荐(0) 编辑
摘要: Nginx可视化管理工具--Nginx-Gui Nginx-Gui可视化管理工具环境Nginx-GUI项目下载安装配置Nginx-GUI 启动 环境 centos 7.8 Nginx-GUI项目 开源项目地址:https://github.com/onlyGuo/nginx-gui 下载对应系统版本 阅读全文
posted @ 2022-02-07 09:38 九尾cat 阅读(3573) 评论(0) 推荐(0) 编辑
摘要: Ubuntu/Debian 搜索安装包 1. 搜索已安装的安装包的信息 1.1 #搜索已经安装的安装包,查找某个文件属于哪个包dpkg -S `which bash` 1.2 #查看已安装包的详细信息dpkg -s bash 2.搜索未安装的安装包 2.1#查找未安装的安装包apt-cache se 阅读全文
posted @ 2022-01-16 20:23 九尾cat 阅读(406) 评论(0) 推荐(0) 编辑
摘要: SUSE 15-SP3 系统配置本地源及网络 1.挂载本地zypper源 # mount /dev/cdrom /mnt/SUSE_LOCAL_SOURCE 2、新建本地源存储目录 #mkdir /mnt/SUSE_LOCAL_SOURCE 3、创建zypper本地源 #zypper ar -f / 阅读全文
posted @ 2021-12-22 15:00 九尾cat 阅读(4143) 评论(0) 推荐(0) 编辑
摘要: 华为云对象存储CLI工具使用--obsutil 下载obs工具 #官网下载链接 https://support.huaweicloud.com/utiltg-obs/obs_11_0003.html 部署 #下载安装包 wget https://obs-community.obs.cn-north- 阅读全文
posted @ 2021-12-13 10:41 九尾cat 阅读(654) 评论(0) 推荐(0) 编辑
摘要: aws CLI使用 官方网站:https://docs.aws.amazon.com/cli/latest/reference/s3/ AWS 命令行界面 (CLI) 是用于管理 AWS 服务的统一工具。只通过一个工具进行下载和配置,您可以使用命令行控制多个 AWS 服务并利用脚本来自动执行这些服务 阅读全文
posted @ 2021-12-01 09:55 九尾cat 阅读(2278) 评论(0) 推荐(0) 编辑
摘要: #git push -u origin --all remote: remote: remote: remote: This deploy key does not have write access to this project. remote: remote: remote: fatal: C 阅读全文
posted @ 2021-11-05 18:59 九尾cat 阅读(780) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页