摘要: 安装Linux虚拟机时, 点选web web server, 再勾选development tools, 解决很多命令还需要用yum安装的问题 Linux查看ip方式: NAT模式 电脑宿主机的ip在局域网内是唯一的,选择了NAT模式创建虚拟机,虚拟机就是一个新的局域网 桥接模式 用此模式,就是局域 阅读全文
posted @ 2019-02-27 11:10 NachoLau 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 碰到乱码时解决方法 requests.get().text是根据HTML文件的headers中的编码来解码的, 出现乱码需要自己用content来获取信息然后解码 方法二(如果还是不行, 用这方法): Jupyter快捷键 插入cell: a b 删除: x 执行:shift+enter tab: 阅读全文
posted @ 2019-02-26 21:11 NachoLau 阅读(537) 评论(0) 推荐(0) 编辑
摘要: pymysql模块的下载 重要 用pymysql执行命令 # 实现:使用Python实现用户登录,如果用户存在则登录成功(假设该用户已在数据库中) import pymysql user = input('请输入用户名:') pwd = input('请输入密码:') # 1.连接 conn = p 阅读全文
posted @ 2019-02-26 14:59 NachoLau 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 官网下载:https://www.navicat.com/en/products/navicat-for-mysql 阅读全文
posted @ 2019-02-26 14:57 NachoLau 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 创建一个新的用户 1.进入到mysql数据库下 2.对新用户增删改 3.对当前的用户授权管理 4.MySql备份命令行操作 阅读全文
posted @ 2019-02-26 14:56 NachoLau 阅读(322) 评论(0) 推荐(0) 编辑
摘要: git是版本控制的工具 工作区 当前工作的地方 缓存区 git add 之后存到的地方就叫缓存区 版本库 git commit 之后存到的地方就叫版本库 分支 stash github 阅读全文
posted @ 2019-02-22 23:50 NachoLau 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 写入 读取 阅读全文
posted @ 2019-02-22 19:14 NachoLau 阅读(271) 评论(0) 推荐(0) 编辑
摘要: /root /roles web.yml /web ansible的一个组 /files /handlers /tasks(必须有) installmariadb.yml installnginx.yml installuwsgi.yml installredis.yml main.yml /tem 阅读全文
posted @ 2019-02-21 22:55 NachoLau 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ansible - 代码发布系统 ssh 秘钥登录 ansible 命令格式 ansible hosts文件 # This is the default ansible 'hosts' file.## It should live in /etc/ansible/hosts## - Comments 阅读全文
posted @ 2019-02-20 22:58 NachoLau 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 单表查询 (1)where 约束 (2)group by 分组查询 (3)聚合函数 (4)HAVING过滤 正确: (5)order by 查询排序 (5)limit 限制查询的记录数: 多表查询 多表连接查询 (1)交叉连接:不适用任何匹配条件。生成笛卡尔积 (2)内连接:只连接匹配的行 (3)外 阅读全文
posted @ 2019-02-18 23:37 NachoLau 阅读(271) 评论(0) 推荐(0) 编辑