安装Docker 国内方式 国内的网络环境众所周知,所以推荐使用镜像站进行安装 sudo apt-get update && sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-p ...
分类:
系统相关 时间:
2021-04-20 15:00:00
阅读次数:
0
1、关闭MySQL [root@mysql ~]# /etc/init.d/mysqld stopShutting down MySQL.. SUCCESS! 2、修改参数文件/etc/my.cnf [root@mysql ~]# cat /etc/my.cnf[mysqld] port=3306 ...
分类:
数据库 时间:
2021-04-20 14:29:49
阅读次数:
0
原因是因为没有添加环境变量。 因为运行XAMPP需要root权限,所以我们可以先切换为root用户,然后在/root/.bashrc文件的最后一行添加: PATH=$PATH:/opt/lampp/bin 执行命令: source .bashrc 现在就可以直接执行mysql的命令了 ...
分类:
数据库 时间:
2021-04-20 14:19:57
阅读次数:
0
1. 打开Navicat for MySQL: 2. 新建一个连接,填写连接信息: 连接名称:用于区分不同的连接,自己命名即可 主机名:localhost 端口:3306 用户名:root 密码:123456(之前配置mysql的时候填写的密码) 3. 点击“连接测试”按钮,弹出连接成功对话框即表示 ...
分类:
数据库 时间:
2021-04-20 14:05:30
阅读次数:
0
public class StatePattern { public static void main(String[] args) { Context context=new Context(); for (int i = 0; i < 10; i++) { context.handle(); } ...
分类:
其他好文 时间:
2021-04-19 16:06:54
阅读次数:
0
1. Binder的系统日志文件 # ps -A | grep suspend system 699 1 2184444 4564 binder_ioctl_write_read 0 S android.system.suspend@1.0-service # ls /proc/699/fd -l ...
分类:
其他好文 时间:
2021-04-19 15:59:18
阅读次数:
0
生成RSA密钥 1. 制作密钥对 [root@host ~]$ ssh-keygen <== 建立密钥对 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): ...
分类:
系统相关 时间:
2021-04-19 15:54:27
阅读次数:
0
string 容器 常见用法 string s1 = "Hello" string s2("Hello") string s3(s2) string s4 = s3 getline(cin,s)// 从cin中读取一行给s s.empty()// 空?true:false; s.size()//返回 ...
分类:
其他好文 时间:
2021-04-19 15:53:19
阅读次数:
0
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: s = "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2: 输入: s = "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 ...
分类:
其他好文 时间:
2021-04-19 15:17:18
阅读次数:
0
Explorer.EXE该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在"默认应用设置"页面中创建关联。 添加如下注册表信息即可解决: Windows Registry Editor Version 5.00 [[HKEY_CLASSES_ROOT\Folder\shell\e ...
分类:
其他好文 时间:
2021-04-19 15:11:29
阅读次数:
0