摘要:
解决docker每次都需要输入sudo的权限问题 每次在使用docker命令的时候,都要添加sudo权限,否则就会报 1、输入 $ sudo groupadd docker 回显示`groupadd: group 'docker' already exists 2、将docker账户给与权限 sud
阅读全文
posted @ 2021-01-15 15:05
凉城旧巷
阅读(479)
推荐(0)
摘要:
设置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
凉城旧巷
阅读(393)
推荐(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
凉城旧巷
阅读(842)
推荐(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
凉城旧巷
阅读(776)
推荐(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
凉城旧巷
阅读(3466)
推荐(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
凉城旧巷
阅读(876)
推荐(0)
摘要:
制作系统服务时ExecStart脚本后台启动任务导致启动失败 复现 解决 删除&,不在服务中后台运行
阅读全文
posted @ 2020-12-14 17:00
凉城旧巷
阅读(4106)
推荐(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
凉城旧巷
阅读(355)
推荐(0)
摘要:
Linux上使用SimpleHTTPServer 快速搭建http服务 一、SimpleHTTPServer介绍 在 Linux 服务器上或安装了 Python 的机器上,可以使用 python -m SimpleHTTPServer [port] 快速搭建一个http服务。 在 Linux 服务器
阅读全文
posted @ 2020-12-03 15:38
凉城旧巷
阅读(4948)
推荐(2)
摘要:
MySQL索引 MySQL索引的建立对于MySQL的高效运行是很重要的,索引可以大大提高MySQL的检索速度。 索引也是一张表,该表保存了主键与索引字段,并指向实体表的记录。 1、索引分类 索引分单列索引和组合索引: 单列索引,即一个索引只包含单个列,一个表可以有多个单列索引,但这不是组合索引 组合
阅读全文
posted @ 2020-12-02 15:55
凉城旧巷
阅读(145)
推荐(0)