创建密钥ssh-keygen -t rsa配置密钥登录cd .ssh touch authorized_keys chmod 600 authorized_keys cat id_rsa.pub >> authorized_keys
https://blog.csdn.net/HD243608836/article/details/106492250
MQTT配合mysql使用报错AttributeError: 'NoneType' object has no attribute 'read'猜测是多线程的原因,多个线程共享了一个数据库连接解决方法执行sql时加上互斥锁import threading lock = threading.Lock() lock.acquire() cursor.execute(command,data) lock.release()也可创建两个数据库连接解决参考:https://blog.csdn.net/qq_29666899/article/details/82990599