iptables

iptables -I INPUT 1 -i eth0 -p tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT

 iptables -nvL

  • -L 表示查看当前表的所有规则,默认查看的是 filter 表,如果要查看 nat 表,可以加上 -t nat 参数。
  • -n 表示不对 IP 地址进行反查,加上这个参数显 …

阅读更多

java版本号

2.1. Java Version Numbers

For reference, let’s take a quick look at the Java version numbers. This will come in handy in case we need to download the appropriate Java version.

The major and …

阅读更多

jenkins ansible报错

fatal: [10.2.1.199]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: Host key verification failed.”, “unreachable”: …

阅读更多