随笔分类 - linux
摘要:使用: //创建 ThreadPool* pool = new ThreadPool(10); //分配任务 函数+参数,参数可以添加多个,后续逗号分隔 pool->enqueue(Myfunction,data); ThreadPool实现: #include <vector> #include
阅读全文
摘要:内置的Ubuntu系统虽然已经有了ssh,但是还需要进行修改。 修改文件:vim /etc/ssh/sshd_config Port 6622 # 端口改为其他的 ListenAddress 0.0.0.0 # 取消注释 PasswordAuthentication yes # 允许密码登录 然后
阅读全文