// 1) Use nodeIP if set (and not "0.0.0.0"/"::") // 2) If the user has specified an IP to HostnameOverride, use it // 3) Lookup the IP from node name by DNS // 4) Try to get the IP from the network interface used as default gateway // // For steps 3 and 4, IPv4 addresses are preferred to IPv6 addresses // unless nodeIP is "::", in which case it is reversed.
modprobe nlmon ip link add nlmon0 type nlmon ip linkset dev nlmon0 up tcpdump -i nlmon0 -w netlinik.pcap # 使用nlmon 驱动模块,这个nlmon 驱动模块会注册一个 netlink tap 口,用户态向内核发送 netlink 消息、内核向用户态发送 netlink 消息,报文都会经过这个 tap 口。
Rule 9: Use longest matching prefix. When DA and DB belong to the same address family (both are IPv6 or both are IPv4): If CommonPrefixLen(DA, Source(DA)) > CommonPrefixLen(DB, Source(DB)), then prefer DA. Similarly, if CommonPrefixLen(DA, Source(DA)) < CommonPrefixLen(DB, Source(DB)), then prefer DB.
hezhangjian:~ $cat /etc/login.defs|grep -i umask # UMASK Default "umask" value. # UMASK is the default umask value for pam_umask and is used by # 022 is the "historical" value in Debian for UMASK # If USERGROUPS_ENAB is set to "yes", that will modify this UMASK default value UMASK 022 # Other former uses of this variable such as setting the umask when
# exmaple file, you can modify this config if exists. File name doesn't matter. # 样例文件,你可以修改已存在的这个文件。文件名称并不重要。 touch /etc/modprobe.d/lvs.conf echo"options nf_conntrack hashsize=65536" >> /etc/modprobe.d/lvs.conf # then you need reboot # 需要重试来使配置生效
文件句柄数
查看
1
ulimit -n
修改
不同的linux发行版,修改方式不太一样,以RedHat为例
1 2
num=`ulimit -n` sed -i "s|$num|65536|g" /etc/security/limits.d/*-nofile.conf
// Map of LabelName to a list of some LabelValues's position in the offset table. // The first and last values for each name are always present. postings map[string][]postingOffset
// Start the server. ChannelFuturef= b.bind(1883).sync();
// Wait until the server socket is closed. f.channel().closeFuture().sync(); } finally { // Shut down all event loops to terminate all threads. bossGroup.shutdownGracefully(); workerGroup.shutdownGracefully(); } }