touch /etc/docker/daemon.json dockerd --config-file /etc/docker/daemon.jsoncat /etc/docker/daemon.json root@ubuntu:~/kata# cat /etc/docker/daemon.json ...
分类:
其他好文 时间:
2020-10-09 20:59:53
阅读次数:
19
启动无法启动MySQL首先查看/etc/init.d/是否有mysqld或其他mysql程序没有的话到安装目录bin目录内找相关程序复制到/etc/init.d/或者用systemctlenablemysqld&&systemctlstartmysqld检查端口ss-lnt|grep3306检查进程ps-ef|grepmysql|grep-vgrep启动基本原理/etc/init.
分类:
数据库 时间:
2020-10-08 18:53:11
阅读次数:
30
食物链 || 带权并查集 #include <cstdio> using namespace std; const int maxn=5e4+3; int f[maxn], w[maxn]; void init(int n) { for(int i = 1; i <= n; ++i) f[i] = ...
分类:
其他好文 时间:
2020-10-07 21:22:07
阅读次数:
29
题目: 将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *nex ...
分类:
其他好文 时间:
2020-10-07 20:36:35
阅读次数:
21
一、安装程序 sudo apt-get install minidlna # 安装minidlna服务 二、配置修改 sudo gedit /etc/minidlna.confmedia_dir=/home/user/video # 配置媒体路径port=8200 # 默认服务端口8200inoti ...
分类:
系统相关 时间:
2020-10-07 20:22:59
阅读次数:
32
SpringMVC的请求和响应 SpringMVC的数据响应 01-SpringMVC的数据响应-数据响应方式(理解) 页面跳转 直接返回字符串 通过ModelAndView对象返回 2) 回写数据 直接返回字符串 返回对象或集合 02-SpringMVC的数据响应-页面跳转-返回字符串形式(应用) ...
分类:
编程语言 时间:
2020-10-06 21:19:36
阅读次数:
38
步骤1:将想要开机自启的程序的快捷方式复制到 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp 目录下即可,类似于linux系统中/etc/init.d/目录,就是系统开机时就会执行这个目录。 步骤2:怎么检查步骤1有没有生效呢 ...
在定义类的过程中,无论是显式创建类的构造方法,还是向类中添加实例方法,都要求将 self 参数作为方法的第一个参数。例如,定义一个 Person 类: class Person: def __init__(self): print("正在执行构造方法") # 定义一个study()实例方法 def ...
分类:
编程语言 时间:
2020-10-06 19:52:55
阅读次数:
29
Q1:xpinyin模块打包之后显示找不到指定文件Mandarin.dat description: 见标题 answer: 在Anaconda\Lib\site-packages\xpinyin路径下找到__init__.py 然后在__init__.py中编辑,找到 data_path = os ...
分类:
其他好文 时间:
2020-10-05 22:32:11
阅读次数:
56
1. 始vue化项目 https://www.cnblogs.com/xiaonq/p/11027880.html 1 2 3 vue init webpack deaxios # 使用脚手架创建项目 deaxios(项目名,随便取得) cd deaxios # 进入项目 npm install a ...
分类:
移动开发 时间:
2020-10-05 22:27:44
阅读次数:
112