我戴着DNS服务器,但我在这个错误中挣扎:
centenarytech.zone:18: ignoring out-of-zone data (centenarytech.pt)
当我做systemctl status named
时。我已named-checkzone centenarytech.pt centenarytech.zone
zone centenarytech.pt/IN: loaded serial 2012031401
OK
并centenarytech.pt
所以我的$TTL 14400
centenarytech.pt. 86400 IN SOA ns1.centenarytech.pt. host.centenarytech.pt. (
2012031401 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)
centenarytech.pt. 86400 IN NS ns1.example.com.
centenarytech.pt. 86400 IN NS ns2.example.com.
centenarytech.pt. 14400 IN A 192.168.1.7
localhost 14400 IN A 127.0.0.1
centenarytech.pt. 14400 IN MX 0 centenarytech.pt.
mail 14400 IN CNAME centenarytech.pt.
www 14400 IN CNAME centenarytech.pt.
ftp 14400 IN CNAME centenarytech.pt.
配置就在这里。
public static void main(String[] args) {
String a = "Hello";
String b="Hello";
int i = a.hashCode();
System.out.println(i);
int v = b.hashCode();
System.out.println(v);
if (i==v){
System.out.println("ture");
}else {
System.out.println("false");
}
}