Loading

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 76 下一页
摘要: 问题 使用C++对类的成员变量进行初始化赋值。 class A { private: std::vector<int> vec(10,0); } 报错expected identifier before numeric constant 原因 事实上C++不允许在类的成员变量中使用()初始化,编译器 阅读全文
posted @ 2022-03-22 10:40 azureology 阅读(604) 评论(0) 推荐(0)
摘要: 前言 经常跟Docker打交道,对于容器net参数有了一定程度的认识,常用以下几种: none bridge host macvlan 分解 none 字面意思,用于创建无网络的容器。 docker run -it --rm --net none ubuntu:20.04 bash bridge 默 阅读全文
posted @ 2022-03-20 14:24 azureology 阅读(430) 评论(0) 推荐(0)
摘要: SEO how to call template function of template class invalid operands of types unresolved overloaded function type 问题 使用模版类的模版成员函数(方法)时会报错,而同样的函数放在普通类则 阅读全文
posted @ 2022-03-20 00:09 azureology 阅读(706) 评论(0) 推荐(0)
摘要: 背景 某台设备在内网使用ssh密码认证登陆 内网穿透转发22端口暴露于公网时希望关闭密码验证 外部连接仅保允许钥认证提高安全性 需求转化为:强制ssh对某ip使用密钥认证 方案 查阅man sshd_config发现关键字Match可以满足需求 Introduces a conditional bl 阅读全文
posted @ 2022-03-08 15:54 azureology 阅读(250) 评论(0) 推荐(0)
摘要: 需求 团队日渐壮大,需要FTP服务器满足数据交换需求。 准备 查阅资料,主流使用vsftpd提供ftp服务。 考虑日后扩容,选择LVM对物理磁盘进行管理。 步骤 建立储存池 假设两款新硬盘为/dev/sdb和/dev/sdc首先建立group $ sudo apt install lvm2 $ su 阅读全文
posted @ 2022-03-05 15:46 azureology 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 76 下一页