- 博客(19)
- 收藏
- 关注
原创 GO-输入输出函数和流程控制语句
与多数语言不同的是,Go语言中的循环语句只支持 for 关键字,而不支持 while 和 do-while 结构。如果想提前结束循环(在不满足结束条件的情况下结束循环),可以使用break或continue关键字。continue 用来跳出当次循环,也就是跳过当前的一次循环。break 用来跳出整个循环语句,也就是跳出所有的循环次数;:条件判断,一般是关系表达式或逻辑表达式,循环控制条件;: 步进语句,一般为赋值表达式,给控制变量增量或减量。: 初始化语句,一般为赋值表达式,给控制变量赋初值;
2023-05-09 22:18:26 338
原创 在使用pymongo库的时候,关于新版本已经废弃的一些方法和函数的报错
AttributeError: 'Cursor' object has no attribute 'conut'TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists
2022-12-25 22:55:11 1050
原创 userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth] 记录一次通过堡垒机连接机器失败问题
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth] 记录一次通过堡垒机连接机器失败问题
2022-12-20 23:51:10 2485
原创 pam_limits(crond:session): Could not set limit for ‘nofile‘: Operation not permitte
pam_limits(crond:session): Could not set limit for 'nofile': Operation not permitte记录一次ssh连接失败,secure日志报nofile参数无法修改?
2022-12-19 23:12:27 826
原创 sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo 脚本使用sudo时报错需要分配一个tty终端?
2022-11-29 23:07:03 1424
原创 sudo: ipset: command not found
sudo: ipset: command not found 使用sudo时找不到命令
2022-11-29 22:54:47 372
原创 zookeeper启动失败:Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeer
zookeeper启动失败:Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeer
2022-11-27 16:31:55 891
原创 记录一次net.ipv4.tcp_tw_recycl快速回收机制导致的tcp连接失败问题
记录一次net.ipv4.tcp_tw_recycl快速回收机制导致的tcp连接失败问题
2022-11-19 01:21:06 1859
原创 记录一次python安装模块故障:ValueError: check_hostname requires server_hostname
记录一次python安装模块故障:ValueError: check_hostname requires server_hostname
2022-10-23 16:15:00 148
原创 Linux系统密码忘记教程
测试机器:CentOS 71、进入到系统的GNUB界面,然后光标停留在要进入的系统2、在上面的页面上按'e'键进入下面的页面3、按'↓'键到设置语言的地方,如LANG=en_US.UTF-8,在后面添加内容:'rw single init=/bin/bash',然后按'ctrl+x'键进入单用户模式4、进入到单用户模式后修改密码...
2022-03-07 21:48:51 768
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人