1、背景: 启动MariaDB服务,通过python远程访问数据库失败,查询MariaDB日志(systemctl status mariadb)报错信息为: user: 'unauthenticated' host: '192.168.1.8' (This connection closed no ...
分类:
数据库 时间:
2021-02-17 14:04:16
阅读次数:
0
打开FTP服务 先ping,查看网络是否联通 打开ssh服务 查看一些服务的状态 #查看ssh状态 service sshd status #防火墙的状态 service iptables status #开启ssh服务 service sshd start #关闭防火墙 chkconfig ipt ...
分类:
系统相关 时间:
2021-02-16 12:23:27
阅读次数:
0
1. 环境准备 创建挂载数据目录和配置文件 mkdir -p /opt/mysql/data /opt/mysql/conf touch /opt/mysql/conf/my.cnf 2. 拉取镜像 docker pull mysql 3. 启动容器 docker run --restart=alw ...
分类:
数据库 时间:
2021-02-15 12:34:37
阅读次数:
0
git checkout -b develop origin/develop: 以远程的origin/develop分支为蓝本,在本地新建一个分支develop,并切换到新建的分支develop,并且建立develop与远程分支origin/develop的跟踪关系(use git pull)。查看 ...
分类:
其他好文 时间:
2021-02-15 12:23:59
阅读次数:
0
出现原因 finalshell意外终止,导致ssh连接意外终止 之后怎么都连不上虚拟机的ssh,一看是虚拟机的ssh已经被意外暂停,可能是跟finalshell的意外终止有关 解决 chmod 600 /etc/ssh/ssh_host_rsa_key chmod 600 /etc/ssh/ssh_ ...
分类:
其他好文 时间:
2021-02-15 12:17:03
阅读次数:
0
1.重命名 git branch -m oldBranchName newBranchName 2.删除远程分支:git push origin :oldBranchName 3.将重命名过的分支提交:git push origin newBranchName 4.新建分支 : git branch ...
分类:
其他好文 时间:
2021-02-15 12:07:38
阅读次数:
0
假设A服务器要把文件复制到B服务器上 首先我们要在B服务器上生成密钥对 参考:https://www.cnblogs.com/pxblog/p/14396409.html 然后在把生成的密钥公钥id_rsa.pub 复制到A服务器上的 /root/.ssh文件夹下,名称改为 authorized_k ...
分类:
系统相关 时间:
2021-02-15 11:59:11
阅读次数:
0
执行 ssh-keygen -t rsa -C "你的邮箱地址" 然后在 cd /root/.ssh/ 目录下会生成三个文件 id_rsa 这是私钥id_rsa.pub 这是公钥known_hosts ...
分类:
系统相关 时间:
2021-02-15 11:58:09
阅读次数:
0
debain10 修改apt源为aliyun mv /etc/apt/sources.list /etc/apt/sources.list.bak && vi /etc/apt/sources.list deb https://mirrors.aliyun.com/debian/ buster ma ...
分类:
其他好文 时间:
2021-02-09 12:34:02
阅读次数:
0
1、安装,下载地址:https://github.com/MicrosoftArchive/redis/releases 2、启动, 默认目录:C:\Program Files\Redis\ 服务程序:redis-server.exe 3、远程连接、密码设置 注释掉redis.windows-ser ...
分类:
Web程序 时间:
2021-02-09 12:12:09
阅读次数:
0