上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 55 下一页
摘要: ipsec.secrets配置文件可写成 : PSK "psk" 会读取ipsec.conf 的 left 和 right 配置 type=start 可自动触发协商 strongswan up dualistic type=route | add 需要手动触发协商 strongswan down 阅读全文
posted @ 2020-10-16 20:57 ascertain 阅读(2373) 评论(0) 推荐(0) 编辑
摘要: CentOS 7 源码安装 PHP 7.4 正式版教程 1、准备编译环境 yum -y install epel-release yum-utils yum config-manager --set-enabled PowerTools yum -y install gcc gcc-c++ make 阅读全文
posted @ 2020-10-15 20:55 ascertain 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 关于内核版本的定义: 版本性质:主分支ml(mainline),稳定版(stable),长期维护版lt(longterm) 版本命名格式为 “A.B.C”: 数字 A 是内核版本号:版本号只有在代码和内核的概念有重大改变的时候才会改变,历史上有两次变化:数字 B 是内核主版本号:主版本号根据传统的奇 阅读全文
posted @ 2020-10-15 20:08 ascertain 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 新安装的nginx可以正常启动,但是查看状态,有个报错 nginx的启动一定的时间,systemd在/run/nginx.pid还未创建时,就读取,造成如此错误 解决办法: 修改nginx的Unit文件 修改前: [Unit] Description=The nginx HTTP and rever 阅读全文
posted @ 2020-10-15 17:56 ascertain 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: 一. 二、hosts.allow和hosts.deny支持哪些服务 2.1 hosts.allow和hosts.deny支持哪些服务 hosts.allow和hosts.deny规则的执行者为TCP wrappers,对应守护进程为tcpd;而tcpd执行依赖于程序使用了libwrap库。 也就是说 阅读全文
posted @ 2020-10-15 16:33 ascertain 阅读(1403) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html default-storage-engin=INNODB 设定默认存储引擎 general-log=0 关闭general log skip-networking 阅读全文
posted @ 2020-10-14 20:03 ascertain 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 本文提供了如何使用growpart和resize2fs工具完成Linux系统盘扩展分区和文件系统的操作指导。 前提条件 在扩展系统盘分区和文件系统前,请提前完成以下工作。 已创建快照备份数据。 为防止操作失误导致数据丢失,建议您操作前使用快照备份数据。具体操作请参见创建普通快照。 已在控制台上扩容云 阅读全文
posted @ 2020-10-14 19:57 ascertain 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 扩容云盘(ResizeDisk)只是扩大云盘的存储容量,不会扩容ECS实例的文件系统,您需要按照本文步骤扩容文件系统,实现ECS实例存储空间的扩展。 前提条件 已创建快照备份数据。 为防止操作失误导致数据丢失,建议您操作前使用快照备份数据。具体操作请参见创建普通快照。 已在控制台上扩容云盘。 若尚未 阅读全文
posted @ 2020-10-14 18:43 ascertain 阅读(840) 评论(0) 推荐(0) 编辑
摘要: parted: mkpart PART-TYPE [FS-TYPE] START END PART-TYPE是指定PARTLABEL的,一般指定为primary,blkid中会显示当分区为gpt时,可以任意指定分区名称,msdos有限制 一般指定为primary 在mkpart操作之前必须有明确的P 阅读全文
posted @ 2020-10-14 17:45 ascertain 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 删除从左至右删除第一个匹配的字符串 ${var/str} 删除全部匹配的str ${var//str} 替换从左至右替换第一个匹配的str1 ${var/str1/str2} 替换全部str1为str2 ${var//str1/str2} 阅读全文
posted @ 2020-10-13 17:36 ascertain 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 网站已接入Web应用防火墙进行防护后,您可以设置源站服务器的访问控制策略,只放行Web应用防火墙回源IP段的入方向流量,防止黑客获取您的源站IP后绕过Web应用防火墙直接攻击源站。本文介绍了源站服务器部署在云服务器ECS、负载均衡SLB时,如何设置对应的安全组规则和白名单策略。 前提条件 源站服务器 阅读全文
posted @ 2020-10-13 16:23 ascertain 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 一、需求背景介绍: 客户业务在往腾讯云迁移的过程中,因为两边的数据需要同步,所以需要建立站点到站点的IPsec V**连接,由于某些公司没有V**设备或者其他云不支持V** Gateway产品的时候,就需要我们自己搭建IPsec V**服务。 本文以strongSwan为例介绍如何在本地站点中加载I 阅读全文
posted @ 2020-10-13 16:00 ascertain 阅读(2263) 评论(0) 推荐(0) 编辑
摘要: command > output.txt The standard output stream will be redirected to the file only, it will not be visible in the terminal. If the file already exist 阅读全文
posted @ 2020-10-13 14:14 ascertain 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 一、拓扑说明 本场景连接拓扑如下图所示,云端两个VPC。其中一个VPC购买VPN网关,另一个VPC购买ECS、 EIP并安装IPsec软件客户端,两个VPC间建立VPN连接。 VPC1的VPN网关IP:11.11.11.11,本地子网192.168.200.0/24; VPC2的EIP为22.22. 阅读全文
posted @ 2020-10-13 10:08 ascertain 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 规则: 找到from字句中指定的模块,加载并初始化它(不是导入) import字句后的名称: 先查from字句导入的模块是否具有该名称的属性 如果不是,则尝试导入该名称的子模块 还没找到,抛出ImportError异常 这个名称保存到本地名词空间中,如果有as字句,使用as字句后的名称 from p 阅读全文
posted @ 2020-10-12 22:21 ascertain 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 启动openvpn client端后,client端的初始化 ROUTE_GATEWAY 192.168.100.1/255.255.255.0 IFACE=ens192 HWADDR=00:50:56:9b:2e:ba这是机器原本的gateway信息 TUN/TAP device tun0 ope 阅读全文
posted @ 2020-10-12 16:49 ascertain 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 系统盘扩容后启动报错启动,搜索后说是把 日志配置文件log4j2.properties 中的配置变为 logger.deprecation.level = error 然而,没卵用 仔细分析后是日志路径/var/log/elasticsearch中这个目录没了 手动建一个就好 因为/var/log的 阅读全文
posted @ 2020-10-11 16:44 ascertain 阅读(184) 评论(0) 推荐(0) 编辑
摘要: input(redis) => output(elasticsearch) input { redis { host => '127.0.0.1' data_type => 'list' key => 'logstash:redis' threads => 10 } } output { elast 阅读全文
posted @ 2020-10-10 23:25 ascertain 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #!/bin/env sh while [ true ];do count=$(ps -ef|grep $1|grep -v grep|grep -v $1) if [[ -z $count ]];then echo failed sh $1 else echo success fi sleep 2 阅读全文
posted @ 2020-10-10 20:48 ascertain 阅读(298) 评论(0) 推荐(0) 编辑
摘要: snapshot: snapshot api是Elasticsearch用于对数据进行备份和恢复的一组api接口,可以通过snapshot api进行跨集群的数据迁移,原理就是从源ES集群创建数据快照,然后在目标ES集群中进行恢复。 Snapshot and restore 模块允许创建单个索引或者 阅读全文
posted @ 2020-10-10 17:37 ascertain 阅读(4172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 55 下一页