java 运算符 优先级

java 运算符 优先级 http://blog.csdn.net/xiaoli_feng/article/details/4567184 在实际的开发中,可能在一个运算符中出现多个运算符,那么计算时,就按照优先级级别的高低进行计算,级别高的运算符先运算,级别低的

traefik

traefik 1 2 3 4 5 6 7 8 9 10 podman run -d \ --name traefik \ -p 80:80 \ -p 8080:8080 \ -v nginx-config:/etc/nginx \ -v nginx-www:/var/www \ -v cert:/etc/letsencrypt \ -v /etc/localtime:/etc/localtime:ro \ traefik:v2.9.6 dashboard http://192.168.50.51:8080/

数据库水平拆分垂直拆分

数据库水平拆分垂直拆分 垂直拆分:专库专用 什么是垂直拆分 一个数据库由很多表组成,每个表对应着不同的业务,垂直拆分是指按照业务将表分类,分布到不

System.exit(n)

System.exit(n) http://www.cnblogs.com/xwdreamer/archive/2011/01/07/2297045.html 1.参考文献 http://hi.baidu.com/accpzhangbo/blog/item/52aeffc683ee6ec238db4965.html 2.解析 查看java.lang.System的源代码,我们可以找到System.exit(status)这个方法的说明,代

redis 主从复制

redis 主从复制 https://lanjingling.github.io/2015/11/17/redis-mast-slaveof/ Redis中,用户可以使用slaveof命令或者slaveof配置项,让一个服务器去复制另一个服务器。进行复制中的主从服务器双方

tcp MTU MSS

tcp MTU MSS MTU: Maxitum Transmission Unit 最大传输单元 检测需要设置的合理的值: 大部分网络设备都是 1500。如果本机的 MTU 比网关的 MTU 大,大的数据包就会被拆开来传送,这样会产

redis 监控

redis 监控 http://ghoulich.xninja.org/2016/12/08/how-to-use-latency-monitor-in-redis/ Redis 2.8.13引入了一个新特性,叫做延迟监控 (Latency Monitoring) ,它可以帮助用户检查和定位可能的延迟问题。延迟监控由下面的几个组件构成: 延迟挂钩: 这

OPTION SQL_SELECT_LIMIT

OPTION SQL_SELECT_LIMIT http://lucifer119.blog.51cto.com/2914308/1344253 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘OPTION SQL_SELECT_LIMIT=DEFAULT’ at line 1 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘OPTION SQL_SELECT_LIMIT=DEFAULT’ at line 1 原因: 项目中我

Inotify

Inotify sudo pacman -S inotify-tools sudo inotifywait -rme access,modify,open /xxx/xxx inotifywait命令参数 -m是要持续监视变化。 -r使用递归形式监视目录。 -q减少冗余信息,只打印出需要的信息。 -e

nsswitch.conf

nsswitch.conf http://lsscto.blog.51cto.com/779396/904078 /etc/nsswitch.conf文件解释 2008-01-17 15:19:47 标签: nsswitch 文件 conf 休闲 职场 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者

ld.so.conf

ld.so.conf http://lsscto.blog.51cto.com/779396/904078 1 2 3 # 列出所有已经安装的共享库 ldconfig -p | less Linux 共享库 Linux 系统上有两类根本不同的 Linux 可执行程序。第一类是静态链接的可执行程序。静态可执行程序包含执

linux 命令行下使用socks 代理

linux 命令行下使用socks 代理 二、将 Socks5 代理转化为 http 代理 socks5 代理转换成 http 代理需要借助第三方软件完成,这里使用 privoxy,Ubuntu 下使用如下命令安装 privoxy apt-get install privoxy -y 编辑配置

fat32, fat32 (LBA)

fat32, fat32 (LBA) http://www.tsingpost.com/articles/201403/480.html fat32和fat32 (LBA) 的区别 LBA(Logical Block Addressing)逻辑块寻址模式 LBA 模式下我们知道硬盘上数据区域由所磁头、柱面 (也磁道) 和扇区所

java maven 可执行 jar/ executable jar, maven-assembly-plugin

java maven 可执行 jar/ executable jar, maven-assembly-plugin 在pom中加入 maven-assembly-plugin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 <project> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.3.0</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>com.wiloon.java.lock.TestFutex</mainClass> </manifest> </archive> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution>

zookeeper leader latch

zookeeper leader latch, leader election https://curator.apache.org/zk-compatibility.html curator-framework 4.x 同时支持 zookeeper 3.4.x, 3.5.x curator4 默认依赖zookeeper 3.5 使用zookeeper3.4时,需要把zookeeper排除掉,再依赖zooke

redis 集群/cluster

redis 集群/cluster redis 工作在集群模式的时候除了常规的 tcp 端口 6379, 还需要一个额外的 TCP 端口跟集群内的其它节点通信, 端口号是在 tcp 端口基础上加一个固定

MarketInfo

MarketInfo 对于当前不同的货币对最小价格的改变也将不同。这个值通常等于 0.01,对于货币对 EURUSD 为 0.0001。在当前开价中这个最小价格改变被称为 点,可以

ES Modules

ES Modules, or ECMAScript Modules foo.js 1 2 3 4 5 6 7 8 9 10 11 12 class ArticleNode { constructor(node, paragraph) { this.node = node this.paragraph = paragraph } } export function createOneArticleNode(){ let articleNode0 = new ArticleNode('foo', 'bar') console.log('a n: ', articleNode0) } bar.js 1 2 3 4 5 6 7 8 9 // jest test import { createOneArticleNode } from '../content_module.js' test('test es module 0', () => { console.