会挽雕弓如满月,西北望,射天狼。|

园龄:粉丝:关注:

python3部署文件服务器,支持curl命令上传文件
摘要: 上传命令 curl -F "file=@file.txt" http://x.x.x.x:5000/upload file-server.py from flask import Flask, request, redirect, url_for, send_from_directory, flas
1
0
0
设置OS messages不记录指定服务的日志
摘要: 以amazon-ssm-agent服务为例 打开配置文件 sudo vi /etc/rsyslog.conf 增加下面行 :programname, isequal, "amazon-ssm-agent" ~ 重启服务 sudo systemctl restart rsyslog
2
0
0
[item] curl 超时返回 0
摘要: curl -o /dev/null -X POST -s -w %{http_code} -i --connect-timeout 2 -m 8 xxx -o /dev/null:将响应体输出到 /dev/null(即丢弃响应体)。 -X POST:指定使用 POST 方法发送请求。 -s:静默模式
6
0
0
[python3] 获取zabbix上所有主机的ip
摘要: get_zabbix_hosts.py import requests import json # Zabbix API的URL和认证信息 zabbix_url = '' zabbix_user = '' zabbix_password = r'' # 获取Zabbix API的认证令牌 def g
10
0
0
[ruby]获取zabbix上所有主机的ip
摘要: get_zabbix_hosts.rb require 'net/http' require 'uri' require 'json' require 'yaml' # 加载配置文件 config = YAML.load_file('config.yml') url = config['creden
9
0
0
KVM 无其它异常,没有串口日志,切vnc连接显示 "guest has not initialized the display(yet)"
摘要: 检查xml文件, 字段,是不是指向了一个样已经被删除的文件。
114
0
0
Linux 命令使用:inotifywait 和 inotifywatch
摘要: 安装 yum install inotify-tools 使用 实时监视文件系统的变化,不指定事件即监视所有事件 inotifywait -rqm . –exclude aa/ 采集文件1、不采集文件2的文件系统事件(结束时打印统计信息) inotifywatch 1 @2
59
0
0
Linux nginx 配置
摘要: Nginx的配置类型丰富多样,可以根据不同的需求进行灵活配置。以下是使用不同域名介绍的10种Nginx配置类型: 基本Web服务器配置 域名:http://www.example1.com 配置说明:这是Nginx作为Web服务器的基本配置,包括监听端口、服务器名称、根目录设置等。 示例配置: ng
10
0
0
Centos& 重装docker
摘要: 原链接: https://www.cnblogs.com/omgasw/p/12053986.html 1.卸载旧版本 docker yum remove docker docker-common docker-selinux dockesr-engine -y 2.升级系统软件 yum upgra
33
0
0
Liunx xfs文件系统的f_type
摘要: xfs_info 是一个用于显示 XFS 文件系统信息的工具。 在 xfs_info 命令中,ftype 参数用于指定文件类型的处理方式。XFS 文件系统支持两种文件类型处理方式: ftype=0:传统方式(Legacy mode) ftype=1:扩展方式(Extended mode) ftype
79
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起