lichengbei 2019-12-21 修改网络配置文件,注意只给一个网口配置gateway,系统会生成一条默认路由: root@ubuntu-lichengbei:~# vim /etc/network/interfaces # The loopback network interface a ...
分类:
系统相关 时间:
2019-12-22 12:52:08
阅读次数:
126
Linux有三个分区/boot 分区swap 虚拟内存分区/ 根目录分区 root 超级用户密码 centos2019 重启Linux的命令reboot Linux的目录结构 是层级式的树状目录结构,最上层的根目录是“/” 在Linux的世界里,一切皆文件 /bin目录:存放经常使用的命令/home ...
分类:
系统相关 时间:
2019-12-21 20:48:57
阅读次数:
107
Linux基本命令(一) 目标 熟练使用 Linux常用的命令 ls 查看文件 clear 清空 cd pwd mkdir touch rm cp mv tree chmod find grep 重定向 软连接、硬链接 压缩 shutdown reboot who exit passwd sudo ...
分类:
系统相关 时间:
2019-12-21 13:39:11
阅读次数:
108
Logstash:处理多个input Logstash的整个pipleline分为三个部分: input插件:提取数据。 这可以来自日志文件,TCP或UDP侦听器,若干协议特定插件(如syslog或IRC)之一,甚至是排队系统(如Redis,AQMP或Kafka)。 此阶段使用围绕事件来源的元数据标 ...
分类:
其他好文 时间:
2019-12-21 13:38:17
阅读次数:
389
/*** JDK提供了ExecutorService实现了线程池功能:* 线程池内部维护一组线程,可以高效执行大量小任务;* Executors提供了静态方法创建不同类型的ExecutorService;* 必须调用shutdown()关闭ExecutorService;* ScheduledThr ...
分类:
编程语言 时间:
2019-12-20 15:14:08
阅读次数:
115
Centos7 LVM管理的逻辑卷重新划分分区 https://www.cnblogs.com/kevingrace/p/5825963.html umount /home 卸载掉/home目录 vi /etc/fstab 编辑分区表文件,注释掉/home分区 systemctl reboot 重启 ...
分类:
其他好文 时间:
2019-12-20 13:39:50
阅读次数:
86
WebActivatorEx WebActivator类库提供了3种功能: PreApplicationStartMethod ApplicationShutdownMethod 这三种功能分别在HttpApplication初始化之前、之后以及ShutDown的时候分别执行指定的代码 示例如下: ...
分类:
Web程序 时间:
2019-12-20 11:35:15
阅读次数:
83
package main import ( "context" "flag" "fmt" "github.com/gorilla/mux" uuid "github.com/satori/go.uuid" "goetcd/util" "log" "net/http" "os" "os/signal"... ...
分类:
其他好文 时间:
2019-12-20 01:01:47
阅读次数:
109
from concurrent.futures import ThreadPoolExecutor # 导入线程池 from threading import current_thread # 从线程中导入查看当前线程的方法 import time,random pool = ThreadPoolE ...
分类:
编程语言 时间:
2019-12-20 00:50:17
阅读次数:
105
1、reis设置登陆密码,redis-cli使用一下命令登陆 redis-cli -a <你的密码>// 例redis-cli -a 123456 2、linux 操作系统下的redis配置文件发生更改后,在shutdown后重启时,需指定配置文件。 否则配置文件不生效。redis会默认读取配置缓存 ...
分类:
其他好文 时间:
2019-12-19 18:49:10
阅读次数:
106