上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: 参考的镜像地址 迁移php的项目记得把数据库一起迁走。 https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html 创建配置目录 mkdir -p /opt/docker/et 阅读全文
posted @ 2022-11-06 19:23 Gshelldon 阅读(81) 评论(0) 推荐(0)
摘要: 感谢CSDN博主的博文。原始博文有问题,这里修改过。 原文链接:https://blog.csdn.net/weixin_38652136/article/details/106672218 https://blog.csdn.net/weixin_45015255/article/details/ 阅读全文
posted @ 2022-11-06 15:39 Gshelldon 阅读(608) 评论(0) 推荐(0)
摘要: 1、mysqldump -B 在备份数据库的时候会在备份的语句中写入create database的语句,导回来的时候就不需要指定库了,在-B的后面可以添加多个库的名字。 --singe-transaction这个参数在innodedb引擎中独有,作用是在导出的时候不锁表导出数据,保证数据的一致性。 阅读全文
posted @ 2022-11-05 21:25 Gshelldon 阅读(143) 评论(0) 推荐(0)
摘要: KVM 虚拟机 1、安装kvm 开启cpu虚拟化 虚拟机最低配置,内存 == 4G 磁盘 == 100G 操作系统CentOS7.6 1810 [root@localhost ~]# cat /proc/cpuinfo | grep vm [root@localhost ~]# yum instal 阅读全文
posted @ 2022-07-10 17:31 Gshelldon 阅读(4278) 评论(0) 推荐(0)
摘要: 报错信息 报错信息 Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or sele 阅读全文
posted @ 2022-07-09 14:53 Gshelldon 阅读(1329) 评论(0) 推荐(0)
摘要: 数据类型公共方法 “+” 可以用来拼接字符串、元组、列表 >>> words1 = ["a", 'b', 'c'] >>> wwords2 = ["d", "e", "f"] >>> words1 + wwords2 ['a', 'b', 'c', 'd', 'e', 'f'] >>> words1 阅读全文
posted @ 2022-06-26 21:33 Gshelldon 阅读(51) 评论(0) 推荐(0)
摘要: 集合 集合是无序的,没有重复的元素,如果有重复的会自动去重。 用{} 或者 set表示,如果直接使用{}是一个字典,空集合的表示方式为 set() 如果里面是键值对就是字典,如果是单个元素就是集合 names = {"frank", "jimi", "bander"} 1、自动去重 >>> name 阅读全文
posted @ 2022-06-26 21:32 Gshelldon 阅读(95) 评论(0) 推荐(0)
摘要: 列表 当我们有多个数据需要保存的时候,可以考虑使用列表。列表是有序的,用户可以通过下标的方式对列表进行切片,还可以使用下标来修改列表的元素。 1.列表的表示方式 names = ["tank","tom","frank","jerry","honey"] # 使用list传入一个可迭代对象进行转换 阅读全文
posted @ 2022-06-12 11:34 Gshelldon 阅读(91) 评论(0) 推荐(0)
摘要: 字符串 1.字符串的表示方法 单引号 双引号 三引号 一般来嵌套使用 a = 'hello' b = "word" c = """hahahhah""" # 嵌套的使用 >>> print("小明说:‘昨天去happy了!’") 小明说:‘昨天去happy了!’ >>> print("I'am xi 阅读全文
posted @ 2022-05-22 16:33 Gshelldon 阅读(149) 评论(0) 推荐(0)
摘要: 循环判断练习 1、使用for和while循环输出 0~100内所有3的倍数。 for i in range(101): if i % 3 == 0: print(i,end=' ') print() num = 0 while num < 100: if num % 3 == 0: print(nu 阅读全文
posted @ 2022-05-14 20:34 Gshelldon 阅读(348) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页