Ubuntu20.04 LTS nginx安装后仅本机可以访问

在ubuntu上配置nginx,本机使用curl可以访问,局域网内其他机器无法通过ip访问查看防火墙和端口ufw status netstat -na|grep 80防火墙是关闭状态,端口监听中且无其他程序占用,nginx采用apt安装,正常情况下不会出现安装问题(已卸载安装重启多次),且本机可以访问,所以基本可以确定是网络配置问题(防火墙)。iptables和ufw出现问题,iptable...

错误处理 2021-10-08 PM 1616次 0条

ubuntu20.04 LTS ping内网内某个地址不通,外网正常

使用ssh命令进入内网内另一台机器,出现:ssh: connect to host 172.17.137.14 port 322: No route to host尝试:ping 172.17.137.14出现:PING 172.17.137.14 (172.17.137.14) 56(84) bytes of data. 来自 172.17.0.1 icmp_seq=1 目标主机不可达 来...

错误处理 2021-08-26 PM 1441次 0条

Python列表sort()后返回None 可迭代对象(iterable)的排序

问题来源listA = [1, 5, 2] print(listA.sort()) # Output: None对列表排序后发现返回值为None,查阅python文档后醒悟,list.sort()为list类内置函数,直接对list排序并返回None避免混淆。正确用法listA = [1, 5, 2] listA.sort() print(listA) # Output: [1, 2, 5]...

错误处理,随笔 2021-08-23 PM 1703次 0条

python使用opencv读取网络视频流报错error while deconding

在yolov5中使用opencv读取多个网络视频流出现:查询Stack Overflowhttps://stackoverflow.com/questions/49233433/opencv-read-errorh264-0x8f915e0-error-while-decoding-mb-53-20-bytestream原因:The frame value is the image of e...

错误处理 2021-08-14 PM 3360次 0条