凉城旧巷
Python从入门到自闭,Java从自闭到放弃,数据库从删库到跑路,Linux从rm -rf到完犊子!!!
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页
摘要: 设置sudo不需要输入密码(不安全,慎用) sudo vim /etc/sudoers 添加your_user_name ALL=(ALL) NOPASSWD: ALL # # This file MUST be edited with the 'visudo' command as root. # 阅读全文
posted @ 2021-01-15 15:03 凉城旧巷 阅读(378) 评论(0) 推荐(0) 编辑
摘要: docker启动es报错 错误 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] 解决 阅读全文
posted @ 2021-01-15 14:51 凉城旧巷 阅读(730) 评论(0) 推荐(0) 编辑
摘要: Ubuntu制作系统服务时服务程序需要root权限 1、简单service start_service.service [Unit] Description=MonitorIP After=network-online.target Wants=network-online.target [Serv 阅读全文
posted @ 2021-01-13 16:49 凉城旧巷 阅读(648) 评论(0) 推荐(0) 编辑
摘要: ubuntu下修改apt源问题(无法解析域名) apt修改为阿里源, sudo vim /etc/apt/sources.list # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer ve 阅读全文
posted @ 2021-01-06 10:33 凉城旧巷 阅读(3150) 评论(0) 推荐(0) 编辑
摘要: mysql版本不同导致mysqldump的错误 复现 原因 在mysql8.0之前的mysqldump命令格式为: mysqldump --host=<server> --port=<port> --user <user> --password database > dump_file_path m 阅读全文
posted @ 2020-12-21 10:51 凉城旧巷 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 制作系统服务时ExecStart脚本后台启动任务导致启动失败 复现 解决 删除&,不在服务中后台运行 阅读全文
posted @ 2020-12-14 17:00 凉城旧巷 阅读(4048) 评论(0) 推荐(0) 编辑
摘要: 使用https代替http 1、http模式下nginx配置 upstream django { server 127.0.0.1:9090; } server { listen 80; server_name localhost; charset utf-8; access_log /root/x 阅读全文
posted @ 2020-12-11 17:19 凉城旧巷 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Linux上使用SimpleHTTPServer 快速搭建http服务 一、SimpleHTTPServer介绍 在 Linux 服务器上或安装了 Python 的机器上,可以使用 python -m SimpleHTTPServer [port] 快速搭建一个http服务。 在 Linux 服务器 阅读全文
posted @ 2020-12-03 15:38 凉城旧巷 阅读(3868) 评论(0) 推荐(1) 编辑
摘要: MySQL索引 MySQL索引的建立对于MySQL的高效运行是很重要的,索引可以大大提高MySQL的检索速度。 索引也是一张表,该表保存了主键与索引字段,并指向实体表的记录。 1、索引分类 索引分单列索引和组合索引: 单列索引,即一个索引只包含单个列,一个表可以有多个单列索引,但这不是组合索引 组合 阅读全文
posted @ 2020-12-02 15:55 凉城旧巷 阅读(128) 评论(0) 推荐(0) 编辑
摘要: MySQL排序内存溢出 案例 MySQL中: Django项目中: 原因 SHOW VARIABLES LIKE '%sort_buffer_size%'; 图中的sort_buffer_size为256*1024,太小 解决方案 修改sort_buffer_size SET GLOBAL sort 阅读全文
posted @ 2020-12-02 15:51 凉城旧巷 阅读(604) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 32 下一页