一、Redis主从复制作用作用:保证Redis的数据安全,提升应用服务高可用二、网络环境三、在从服务器设置同步1、查看从Redis服务器上现有的数据[root@web01redis]#./redis-cli127.0.0.1:6379>keys*(emptylistorset)127.0.0.1:6379>2、查看主Redis服务器上现有的数据[root@web02redis]#./r
分类:
其他好文 时间:
2018-08-13 18:08:28
阅读次数:
168
[root@szxjdw01-a-pro-14 redis-stable]# cat /etc/init.d/redis
#!/bin/sh
#
# Simple Redis init.d script conceived to work on Linux system
分类:
其他好文 时间:
2018-07-28 13:42:12
阅读次数:
169
操作系统经典的三态如下: 1、就绪态 2、等待(阻塞) 3、运行态 其转换状态如下图所示: 操作系统内核中会维护多个队列,将不同状态的进程加入到不同的队列中,其中撤销是进程运行结束后,由内核收回。 以上的三态是操作系统原理中给出的,但是各个操作系统的平台实现这些状态的时候是有差异的,例如linux操 ...
分类:
系统相关 时间:
2018-07-21 17:10:00
阅读次数:
253
In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal (that is, it h ...
分类:
其他好文 时间:
2018-07-16 21:13:09
阅读次数:
195
linux提供的fg和bg命令,可以让我们轻松调度正在运行的任务 假如你发现前天运行的一个程序需要很长的时间,但是需要干前天的事情,你就可以用ctrl-z挂起这个程序,然后可以看到系统的提示:[1]+ Stopped /root/bin/rsync.sh此时进程处于停止状态, 我们可以让它在后台继续执行#bg 1[1]+ /root/bin/rsync.sh &用jobs命令查
分类:
系统相关 时间:
2018-07-12 12:53:53
阅读次数:
203
https://github.com/Microsoft/vscode-go/wiki/Go-with-VS-Code-FAQ-and-Troubleshooting Q: Auto-completions stopped working. What do I do? Run gocode clos ...
分类:
其他好文 时间:
2018-07-06 01:40:08
阅读次数:
1571
The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
分类:
其他好文 时间:
2018-06-30 12:39:02
阅读次数:
241
随着业务的增长,您的数据盘容量可能无法满足数据存储的需要,这时您可以使用 磁盘扩容 功能扩容数据盘。 说明 挂载在实例上的数据盘,只有当实例处于 运行中 (Running) 或 已停止(Stopped) 状态时才可以扩容。扩容这种数据盘需要在控制台上重启实例后才能使扩容后的容量生效,而重启实例会停止 ...
分类:
系统相关 时间:
2018-06-27 21:07:56
阅读次数:
777
进程相关命令 top,ps,vmstat,ss # top top - 08:43:01 up 13 min, 5 users, load average: 0.01, 0.22, 0.24 Tasks: 189 total, 1 running, 188 sleeping, 0 stopped, ...
分类:
系统相关 时间:
2018-06-26 01:11:59
阅读次数:
242
Xms 是指设定程序启动时占用内存大小。一般来讲,大点,程序会启动的快一点,但是也可能会导致机器暂时间变慢。 Xmx 是指设定程序运行期间最大可占用的内存大小。如果程序运行需要占用更多的内存,超出了这个设置值,就会抛出OutOfMemory异常。 Xss 是指设定每个线程的堆栈大小。这个就要依据你的 ...
分类:
其他好文 时间:
2018-06-25 11:12:05
阅读次数:
166