[root@nginx01 zones]# cat public.xml
PublicFor use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted. ##可以开放端口地址范围"10050-10051",不单只限定一个端口
##放通指定ip,指定端口、协议
##放通任意ip访问服务器的9527端口
firewall-cmd --reload
service firewalld restart #使配置文件重新加载
cat /usr/lib/firewalld/services/ssh.xml
SSHSecure Shell (SSH) is a protocol for logging into and executing commands on remote machines. It provides secure encrypted communications. If you plan on accessing your machine remotely via SSH over a firewalled interface, enable this option. You need the openssh-server package installed for this option to be useful.
##定义ssh.xml服务使用的协议,和通信的端口信息。
自定义服务(mongo.xml)模块
cat /usr/lib/firewalld/services/mongo.xml
mongoThe service of mongo.
防火墙应用服务器模块
cat /etc/firewalld/zones/mongo.xml
mongomongo service
查看mongo.xml服务的防火墙生效情况
firewall-cmd --list-all-zones
...
mongo
interfaces:
sources: 2.2.2.2/24
services: mongo
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
...
cat multi.xml
multi servicesIP of 10.10.86.44 apply in multi srevices. ##同时添加多个服务
firewall-cmd --list-all-zones
...
multi
interfaces:
sources: 10.10.86.44
services: http mysql ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
...
在网上无意中看到淘宝提交的hotspot patch,共四个,有意思,记录一下。
7050685:jsdbproc64.sh has a typo in the package name
7058036:FieldsAllocationStyle=2 does not work in 32-bit VM
7060619:C1 should respect inline and
CREATE TABLE sessions (
id CHAR(32) NOT NULL,
data TEXT,
last_accessed TIMESTAMP NOT NULL,
PRIMARY KEY (id)
);
<?php
/**
* Created by PhpStorm.
* User: michaeldu
* Date
public Vector<CartProduct> delCart(Vector<CartProduct> cart, String id) {
for (int i = 0; i < cart.size(); i++) {
if (cart.get(i).getId().equals(id)) {
cart.remove(i);
问题是首页在火狐、谷歌、所有IE中正常显示,列表页的页面在火狐谷歌中正常,在IE6、7、8中都不中,觉得可能那个地方设置的让IE系列都不认识,仔细查看后发现,列表页中没写HTML模板部分没有添加DTD定义,就是<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3
com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:460)
at com.jcraft.jsch.Session.connect(Session.java:154)
at cn.vivame.util.ftp.SftpServerAccess.connec
centos p安装
yum -y install tree
mac os安装
brew install tree
首先来看tree的用法
tree 中文解释:tree
功能说明:以树状图列出目录的内容。
语 法:tree [-aACdDfFgilnNpqstux][-I <范本样式>][-P <范本样式
一. 实体类简述
实体类其实就是俗称的POJO,这种类一般不实现特殊框架下的接口,在程序中仅作为数据容器用来持久化存储数据用的
POJO(Plain Old Java Objects)简单的Java对象
它的一般格式就是
public class A{
private String id;
public Str