标签 zone 下的文章

  • 📂死磕nginx系列--nginx 限流配置教程

    限流算法令牌桶算法算法思想是:令牌以固定速率产生,并缓存到令牌桶中;令牌桶放满时,多余的令牌被丢弃;请求要消耗等比例的令牌才能被处理;令牌不够时,请求被缓存。漏桶算法算法思想是:水(请求)从上方倒入水桶,从水桶下方流出(被处理);来不及流出的水存在水桶中(缓冲),以固定速率流出;水桶满后水溢出(丢弃)。这个算法的核心是:缓存请求、匀速处理、多余的请求直接丢弃。 相比漏桶算法,令牌桶算法不同...

  • 📂mysqldump导出 timestamp类型数据 时区偏差8小时教程

    1 出现原因1.1 查看机器时区和MySQL的时区<pre class="brush:csharp;gutter:true;">#查看linux的机器时区: [root@mysql-150 ~]# date -R Wed, 23 Oct 2019 14:10:04 +0800 [root@mysql-150 ~]# date Wed Oct 23 14:10:...

  • 📂使用JDBC连接MySql时出现:The server time zone value '�й���׼ʱ��' is unrecognized or represents more教程

    使用JDBC连接MySql时出现:The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configurat...

  • 📂Linux Firewalld 基础教程

    互联网上提供了各种网络服务,而防火墙可以设置各种规则来限制访问,保护服务器。-概述 =======================Linux的防火墙体系主要工作在网络层,针对TCP/IP数据包实施过滤和限制,属于典型的包过滤防火墙。Linux系统的防火墙体系基于内核编码实现,具有非常稳定的性能和极高的效率。三种防火墙netfilter指linux内核中实现包过滤防火墙的内部结构属于内核态的...

  • 📂linux防火墙解析教程

    Firewalld概述(1)支持网络区域所定义的网络连接以及接口安全的动态防火墙管理工具。 (2)支持IPv4、IPv6防火墙设置以及以太网桥接 (3)支持服务或应运程序直接添加防火墙规则口 (4)拥有两种配置模式 运行时配置 永久配置Firewalld和iptables的关系netfilter(1)位于linux内核中的包过滤功能体系 (2)称为Linux防火墙的“内核态”Fi...

  • 📂Firewalld防火墙(CentOS 7)教程

    Firewalld简介1.支持网络区域所定义的网络连接以及接口安全的动态防火墙管理工具。 2.支持IPv4、IPv6防火墙设置以及以太网桥接 3.支持服务或应运程序直接添加防火墙规则口 4.拥有两种配置模式 运行时配置 永久配置--Firewalld与iptables的关系-netfilter1.位于linux内核中的包过滤功能体系 2.称为Linux防火墙的“内核态”-Fire...

  • 📂Linux系统——Firewalld防火墙命令概述教程

    Firewalld防火墙命令概述命令列表选项说明--get-default-zone显示网络连接或接口的默认区域--set-default-zone=\设置网络连接或接口的默认区域--get-active-zones显示已激活的所有区域--get-zone-of-interface=\显示指定接口绑定的区域--zone=\ --add-interface=\为指定接口绑定区域--zone=\...

  • 📂shell之正向解析脚本教程

    正向解析脚本#!/bin/bash yum install bind -y //安装解析工具包 //修改主配置文件 sed -i '13s/127.0.0.1/192.168.17.156/' /etc/named.conf //把解析主配置文件第13行的IP地址换成192.168.17.156 sed -i '21s/localhost/any/' /etc/named.con...

  • 📂学习linux的第二十四天教程

    firewalld的9个zone 在上面我们把firewalld禁用了 现在我们要重启一下:命令如下 firewalld有两个基础概念,分别是zone和service,每一个zone里有不同的iptables规则,默认一共有9个zone,而cenos7默认的zone为public。获取系统所有的zone,命令如下: 下面介绍一下9个zone: firewalld关于zone的...

  • 📂(五)Linux内存管理zone_sizes_init教程

    背景Read the fucking source code! --By 鲁迅A picture is worth a thousand words. --By 高尔基=================================================================================================================...

  • 📂nested exception is java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is un教程

    在连接数据库时出现以下异常 :nested exception is java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized出现原因 : 数据库时区问题解决办法 : 1. 在终端开启mysql, 输入以下命令 :show variables like '%time\_zone%';继续输...

  • 📂高版本MySQL(5.7,5.8)的JDBC连接新问题教程

    在使用JDBC连接访问MySQL时一般要使用对应版本的驱动。 比如我使用了8.0.11版本的MySQL,对应驱动的Maven描述为:1 <dependency> 2 <groupId>mysql</groupId> 3 <artifactId>mysql-connector-java</artifactId> 4 ...

  • 📂防火墙和SELinux复习02教程

    1.防火墙防火墙主要起隔离作用,严格的过滤入站,允许出站。又分为硬件防火墙和软件防火墙,硬件防火墙主要保护一群机器,而软件防火墙主要保护本机。防火墙相关命令:systemctl status firewalld.service #查看防火墙当前状态systemctl start firewalld #启动防火墙systemctl stop firewalld #关闭防火墙systemctl ...

  • 📂防火墙centos7执行 service iptables status报错问题完美解决教程

    在centos7 执行防火墙命令时 service iptables status 报错如下:解决方案 :1.systemctl start firewalld.service(开启防火墙)2.systemctl stop firewalld.service(关闭防火墙)3.service firewalld restart(从启防火墙)4.firewall-cmd --zone=publi...

  • 📂centos6下防火墙命令与centos7下防火墙命令区别教程

    一、centos6防火墙命令 1、查看防火墙规则 \#iptables -L2、状态、开启、关闭、重启防火墙 \#service iptables status \#service iptables start \#service iptables stop \#service iptables restart 永久关闭防火墙 \#chkconfig iptables of...

  • 📂Centos7防火墙配置教程

    CentOS7 Firewall防火墙配置用法详解Centos 7中防火墙是一个非常的强大的功能了,但对于centos 7中在防火墙中进行了升级了,下面我们一起来详细的看看关于centos 7中防火墙使用方法。FirewallD 提供了支持网络/防火墙区域(zone)定义网络链接以及接口安全等级的动态防火墙管理工具。它支持 IPv4, IPv6 防火墙设置以及以太网桥接,并且拥有运行时配置和...

  • 📂22,Nginx常用功能模块教程

    1,Nginx常用模块(日志切割) 1)我们可以在虚拟主机配置定义不同网站日志放到以自己名字命名的日志文件里 2)systemctl reload nginx cd /var/log/nginx && ll 4)切割日志,让日志按照每天日期去命名 5,logrotate -f /etc/logrotate.d/nginx 切割 2,查看Nginx状态模块 1)cd ...

  • 📂com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '�教程

    原文链接:https://blog.csdn.net/qq\_16166139/article/details/52838025解决方案: 为URL添加参数:jdbc:mysql://localhost:3306/sys?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyD...

  • 📂【RHEL7/CentOS7防火墙之firewall-cmd命令详解】教程

    目录Firewalld zonefirewall-cmd开始配置防火墙策略总结"Redhat Enterprise Linux7已默认使用firewalld防火墙,其管理工具是firewall-cmd。使用方式也发生了很大的改变。基于iptables的防火墙已默认不启动,但仍然可以继续使用。RHEL7中有这几种防火墙共存:firewalld、iptables、ip6tables、ebtabl...

  • 📂【RHEL7/CentOS7防火墙之firewall-cmd命令详解】 �教程

    目录Firewalld zonefirewall-cmd开始配置防火墙策略总结原文: http://blog.gqylpy.com/gqy/318"Redhat Enterprise Linux7已默认使用firewalld防火墙,其管理工具是firewall-cmd。使用方式也发生了很大的改变。基于iptables的防火墙已默认不启动,但仍然可以继续使用。RHEL7中有这几种防火墙共存:...

  • 📂【BUG】java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or r教程

    控制台报错信息: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the ...

  • 📂mysql时区设置为东八区教程

    场景:后台返回给页面的时间统一差8小时。分析:差八小时,应该是时区问题。具体的是哪一层出的问题呢,mybatis?mysql?系统时间?解析:1.查询mysql时区(正常)输入show variables like "%time_zone%";,显示当前时区全局参数system\_time\_zone 系统时区,在MySQL启动时会检查当前系统的时区并根据系统时区设置全...

  • 📂数据库报错教程

    报错:java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone c...

  • 📂dns自动配置shell脚本教程

    这个脚本用于快速配置dns,输入域名、ip即可,如果有什么特殊的配置,稍微修改一下就可以了代码:#!/bin/bash #获取url echo "url:" read url #获取ip echo "ip:" read ip #向/etc/named.rfc1912.zones尾插入 #zone "$url" IN { # ...

  • 📂nginx的安全改造教程

    nginx的安全改造对不是由浏览器发起的请求,拒绝访问返回503限流模块关闭nginx版本信息的返回 #隐藏版本号 server_tokens off; # 定义了一个10m内存的rztlimit缓冲区,请求频率未每秒50个请求. limit_req_zone $binary_remote_addr zone=rztlimit:10m rate=50r/s; ...

  • 📂mysql8报错解析教程

    1. 场景描述想把测试数据导一份到本地使用,乱入装了mysql8,使用springboot项目启动的时候报:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure eith...

  • 📂新版mysql8.0出现的问题教程

    Exception in thread “main” java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (...

  • 📂【转】Openwrt iptables分析教程

    转自:https://www.cnblogs.com/tanhangbo/p/4550455.html重点学习如何一步步画出iptables关联表这里将载有Openwrt的WR841N的路由表dump出来分析一下。这个是dump出iptables的命令root@OpenWrt:/etc/config# iptables-save这里分为4部分:1.NAT表*nat :PREROUTING A...

  • 📂CentOS 7 端口白名单设置教程

    # 查看白名单列表 firewall-cmd --zone=public --list-ports # 添加白名单端口 firewall-cmd --zone=public --add-port=2181/tcp --permanent # 重启防火墙 firewall-cmd --reload # 查看白名单列表 firewall-cmd --zone=public --list-p...

  • 📂Linux防火墙firewall的使用教程

    使用软件:firewall作用: 隔离 众多的策略,允许出站,严格控制入站firewalld服务基础 • 系统服务:firewalld • 管理工具:firewall-cmd(命令)、firewall-config(图形化界面)一、四个基本区域根据所在的网络场所区分,预设保护规则集 – public:仅允许访问本机的ssh dhcp ping服务 – trusted:允许任何访问 ...