/images/avatar.jpeg

RabbitMQ pika错误处理 delivery acknowledgement on channel 1 timed out

AMQPChannelError 异常捕获信息: (406, 'PRECONDITION_FAILED - delivery acknowledgement on channel 1 timed out. Timeout value used: 1800000 ms. This timeout value can be configured, see consumers doc guide to learn more') 其他人也与到过这个问题 按照官方文档配置超时参数后问题解决。 pika.ConnectionParameters(heartbeat=600, blocked_connection_timeout=300) DOC: heartbeat_and_blocked_timeouts

Linux 磁盘挂载

查看磁盘 1 2 3 4 sudo fdisk -l sudo lsblk sudo mkfs -t ext4 /dev/mmcblk1 # 格式化 sudo mount /dev/mmcblk1 /home/root/data/ 卸载挂载 1 sudo umount /dev/mmcblk1 自动挂载 1 2 3 sudo blkid # 获取UUID sudo vim /etc/fstab UUID=6b7eaf8d-0b66-6e26-bdff-fa63f7dd1126 /u01 ext4 defaults 1 1

Linux下检测某个ip端口的连通状态

举个例子,要测试的 ip+port: 192.168.0.100:8080 使用 telnet 命令 telnet 192.168.0.100 8080 连通成功: 1 2 3 4 Trying 192.168.0.100... Connected to 192.168.0.100. Escape character is '^]'. Connection closed by foreign host. 连通失败: 1 2 rying 192.168.0.100... telnet: Unable to connect to remote host: Connection refused 使用 nc 命令 nc -zvw3 192.168.0.100 8080 参