![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
空气中的臭氧
一些深信不疑的,后来证明他根本就没有;那些不以为意的,最终明白他都是存在的
展开
-
解决python requests包的post提交形式form和json不同导致传参 is null
requests包是python语言里的一个发送请求的很好用的包,它集成了很多http请求方式,本文重点介绍一下post的提交形式。两者的主要区别在于headers里。原创 2023-03-12 11:40:39 · 920 阅读 · 0 评论 -
解决unable to connect() to node Connection timed out uWSGI listen queue of socket full !!! hr_instance
unable to connect() to node Connection timed out uWSGI listen queue of socket full !!! hr_instance原创 2022-12-14 17:41:29 · 520 阅读 · 0 评论 -
解决ValueError: Unterminated string starting at: line 1 column 237 (char 236)
string 里的内容不是标准的json格式。原创 2022-12-13 17:17:07 · 2700 阅读 · 0 评论 -
From xxx.xxx.xxx.xxx icmp_seq=1 Time to live exceeded
Time to live exceeded原创 2022-08-24 15:49:20 · 2389 阅读 · 0 评论 -
解决TypeError: not enough arguments for format string
not enough arguments for format string原创 2022-07-27 16:56:15 · 1536 阅读 · 0 评论 -
解决SMTPDataError: (550, ‘5.7.60 SMTP; Client does not have permissions to send as this sender‘)
SMTPAuthenticationError,SMTPDataError原创 2022-07-07 20:55:48 · 7979 阅读 · 0 评论 -
解决Too many connections
too many connections原创 2022-06-21 16:18:29 · 2275 阅读 · 0 评论 -
解决不登录mysql不停服务就可以修改mysql参数值等操作
使用 gdb 工具(调试工具)去改变参数的值原创 2022-06-21 16:10:43 · 933 阅读 · 0 评论 -
解决服务器磁盘是ssd还是hdd
一、单磁盘,无raid卡的服务器使用lsblk命令进行判断,参数-d表示显示设备名称,参数-o表示仅显示特定的列lsblk -d -o name,rota # name和rota直接只有一个逗号,不能有空格,否则命令不能执行NAME ROTAsda 1 上面的结果可以看到 sda 的结果是1,1表示是旋转的机械盘,也就是hdd,0表示不是旋转的机械盘,也就是ssd。lsblk -d -o name,rota上面命令也等同于cat /sys/block/sda/queue原创 2022-06-01 16:08:26 · 1299 阅读 · 1 评论 -
解决xtrabackup MySQL server: Access denied
Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at - line 693.BEGIN failed--compilation aborted at - line 693.原创 2022-04-15 18:45:24 · 1806 阅读 · 0 评论 -
解决W10: Warning: Changing a readonly file
今天要修改nginx.conf配置文件里的内容,燃鹅,系统总是提示W10: Warning: Changing a readonly file ,我本身是root用户,也已经给文件所有的读写权限,但就是无法修改后保存,最后,使用强制保存:wq!的方法完成了。在网上看到有人说终极解决办法如下:原因是当初系统被入侵也是被修改文件锁定导致。lsattr 文件名 # 查看被锁的样子----ia-------e- server.sh解锁方法:chattr -ai 文件名 (注:只出原创 2022-02-21 15:25:42 · 10833 阅读 · 0 评论 -
sql查询结果导出到文件里
mysql -uroot -p -e "use database_name;select * from table_name " > a.txt# 双引号里是具体的sql# a.txt 为要导出的文件名原创 2021-12-07 17:08:02 · 2589 阅读 · 0 评论 -
解决KafkaTimeoutError: Batch for TopicPartition
报错具体内容如下:KafkaTimeoutError: Batch for TopicPartition(topic='topic_xxx', partition=0) containing 1 record(s) expired: 30 seconds have passed since batch creation plus linger time连接kafka超时,需要看一下kafka的配置参数(/config/server.properties):listeners=PLAINTEXT://原创 2021-08-14 14:25:28 · 2200 阅读 · 0 评论 -
解决kafka.errors.NoBrokersAvailable: NoBrokersAvailable
报错如下: File "/usr/lib/python2.7/site-packages/kafka_python-1.3.5-py2.7.egg/kafka/producer/kafka.py", line 347, in __init__ **self.config) File "/usr/lib/python2.7/site-packages/kafka_python-1.3.5-py2.7.egg/kafka/client_async.py", line 221, in __init原创 2021-08-14 14:21:59 · 25554 阅读 · 7 评论 -
解决Python.h: No such file or directory
具体报错信息如下:In file included from src/hiredis.c:1:0:src/hiredis.h:4:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~compilation terminated.error: command 'gcc' failed with exit status 1报错是找不到Python.h 文原创 2021-08-10 16:09:36 · 14032 阅读 · 1 评论 -
解决ValueError: bad marshal data (unknown type code)
Traceback (most recent call last): File "setup.py", line 43, in <module> include_package_data=False) File "/usr/local/lib/python3.7/site-packages/setuptools-37.0.0-py3.7.egg/setuptools/__init__.py", line 129, in setup File "/usr/lib64/pytho原创 2021-08-10 15:18:01 · 5068 阅读 · 0 评论 -
解决动态修改/proc/{pid}/limits
cat /proc/39977/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes原创 2021-03-26 10:32:25 · 3746 阅读 · 0 评论