@Component and @Bean do two quite different things, and shouldn’t be confused. @Component (and @Service and @Repository) are used to auto-detect and auto-configure beans using classpath scanning. There’s an implicit one-to-one mapping between the annotated class and the bean (i.e. one bean per class). Control of wiring is quite limited with this approach, since it’s purely declarative. @Bean is used to explicitly declare a single bean, rather than letting Spring
Mysqldump
Mysql的mysqldump详解
Dead_lock
并发通常是指与一个或者多个进程同时发生的过程,通常这也意味着所有这些进程在同一个时间取得进展。并发的代码很难构建,通常需要几个迭代才能,让它按照预期的方式运行。而在并发编程时,都会遇到同样的问题,计算机的科学家已经对共同的问题进行了标记。
Mysql_kill_process
使用kill命令可以杀掉等待msyql线程。
查看句柄数
查看句柄数 1 2 3 4 5 6 7 8 9 10 11 $ ulimit -a Maximum size of core files created (kB, -c) 0 Maximum size of a process’s data segment (kB, -d) unlimited Maximum size of files created by the shell (kB, -f) unlimited Maximum size that may be locked into memory (kB, -l) unlimited Maximum resident
Sed命令
sed
命令表示 Stream Editor(流编辑器),用来在 Linux 上执行基本的文本操作。它可以执行各种功能,如搜索、查找、修改、插入或删除文件。
此外,它也可以执行复杂的正则表达式匹配。
它可用于以下目的:
- 查找和替换匹配给定的格式的内容。
- 在指定行查找和替换匹配给定的格式的内容。
- 在所有行查找和替换匹配给定的格式的内容。
- 搜索并同时替换两种不同的模式。
注意:由于这是一篇演示文章,我们使用不带
-i
选项的sed
命令,该选项会在 Linux 终端中删除行并打印文件内容。但是,在实际环境中如果你想删除源文件中的行,使用带
-i
选项的sed
命令。
Kubernetes常用命令
Kubernetes集群常用命令
GRPC系列 简述
1、简述
gRPC是可以在任何环境中运行的现代开源高性能RPC框架。与许多 RPC 系统类似,gRPC 也是基于以下理念:定义一个服务,指定其能够被远程调用的方法(包含参数和返回类型)。在服务端实现这个接口,并运行一个 gRPC 服务器来处理客户端调用。在客户端拥有一个存根能够像服务端一样的方法。