2021年5月30日
摘要: # 下载帮助镜像portainer/helper-reset-password docker pull portainer/helper-reset-password # 停止运行的portainer docker stop "id-portainer-container" # 运行重置命令 doc 阅读全文
posted @ 2021-05-30 13:56 乾元东 阅读(876) 评论(0) 推荐(0) 编辑
  2020年11月24日
摘要: 新安装mysql后,登录后,执行任何命令都会报错: You must reset your password using ALTER USER statement before executing this statement. MySQL版本5.7.6版本以前用户可以使用如下命令: mysql> 阅读全文
posted @ 2020-11-24 15:31 乾元东 阅读(97) 评论(0) 推荐(0) 编辑
  2020年11月19日
摘要: 1、安装mysql为什么会出错? 2、正常安装过程和报错示例。 2.1查看系统版本 lsb_release -a 2.2下载mysql安装包 下载地址:https://dev.mysql.com/downloads/mysql/ 选择想要下载的mysql版本和对应的系统版本 下载mysql-8.0. 阅读全文
posted @ 2020-11-19 15:07 乾元东 阅读(4801) 评论(0) 推荐(0) 编辑
摘要: 1、备份(针对所有CentOS可用,备份文件在当前路径下) mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ 阅读全文
posted @ 2020-11-19 11:27 乾元东 阅读(820) 评论(0) 推荐(0) 编辑
  2019年7月9日
摘要: 问题描述 解决办法 使用sudo vmware-networks –start查看是否能够启动网络 使用命令sudo modprobe vmnet 重新启动网络成功 VMware成功启动 阅读全文
posted @ 2019-07-09 09:05 乾元东 阅读(2283) 评论(0) 推荐(0) 编辑
  2019年7月8日
摘要: Deepin 15.5中,由于罗技蓝牙键盘需要配对码,所以无法在设置界面连接,本次尝试通过bluetoothctl软件,成功连接,步骤如下: 1.打开系统蓝牙 1 sudo service bluetooth start 2. 进入bluetoothctl 1 bluetoothctl 3. 输入以 阅读全文
posted @ 2019-07-08 21:18 乾元东 阅读(334) 评论(0) 推荐(0) 编辑
  2017年7月31日
摘要: 题目内容: 两位整数相乘形成的最大回文数是 9009 = 99 × 91。编写程序,求得任意输入的 n 位整数相乘形成的最大回文数。 输入格式: 正整数 n 输出格式: n 位整数相乘形成的最大回文数 输入样例: 2 输出样例: 9009 题目内容: 两位整数相乘形成的最大回文数是 9009 = 9 阅读全文
posted @ 2017-07-31 13:37 乾元东 阅读(938) 评论(0) 推荐(0) 编辑
  2017年7月30日
摘要: f=open("D:/names.txt")for line in f: line=line.strip() print line.title()f.close() 阅读全文
posted @ 2017-07-30 11:38 乾元东 阅读(801) 评论(0) 推荐(0) 编辑
摘要: f=open("D:/names.txt")def is_panlindrom_rec(name):#方法一用递归的方法 if len(name)<=1: return True else: if name[0]!=name[-1]: return False else: return is_pan 阅读全文
posted @ 2017-07-30 11:32 乾元东 阅读(282) 评论(0) 推荐(0) 编辑
  2017年7月28日
摘要: n= int (raw_input())def find_prime(n): L = list(range(2,n + 1)) m = 0 while m < len(L): n = m + 1 while n < len(L): if L[n]%L[m] == 0: del L[n] n = n 阅读全文
posted @ 2017-07-28 18:27 乾元东 阅读(1431) 评论(0) 推荐(0) 编辑