Linux下的时区问题
刚才被Linux的时区搞得晕头转向,记录如下:
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
这样就把时区变为了上海时间
把时区变为UTC:
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
另外还有IP route,也很搞:
root@A7570_SH15_A:~# ip rule
0: from all lookup local
32764: from all fwmark 2 lookup sctp2
32765: from all fwmark 1 lookup sctp1
32766: from all lookup main
32767: from all lookup 253
root@A7570_SH15_A:~# ip route list table sctp1
default via 192.168.29.254 dev eth4
root@A7570_SH15_A:~# ip route list table sctp2
default via 192.168.30.254 dev eth5
root@A7570_SH15_A:~# iptables -L -t mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
MARK 132 -- 10.10.15.3 anywhere MARK set 0x1
MARK icmp -- 10.10.15.3 anywhere MARK set 0x1
MARK 132 -- 10.11.15.3 anywhere MARK set 0x2
MARK icmp -- 10.11.15.3 anywhere MARK set 0x2
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination