记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
Rancher最新版本rancher-v2.2.2的HA部署文档  Rancher-v2.2.2的HA部署文档PDF版rancher2.1版本的功能介绍:https://www.cnrancher.com/docs/rancher/v2.x/cn/overview/feature/1,准备工作。1,主机准备。本次部署所用机器均为CentOS Linux release 7.6.1810 (Core)。节点名称IP安装组件nginx192.168.111.6nginxnode1192.168.111.3etcd, docker, k8snode2192.168.111.4etcd, docker, k8snode3192.168.111.5etcd, docker, k8s2,软件准备。因为软件版本可能中有变更,所以我把这次部署的包都放在百度网盘,下载之后部署,以保证部署过程的流畅。链接: https://pan.baidu.com/s/1sdLPuRTDBbd9UrzyMQCTeA提取码: 7ete文中相关部署软件的命令,可做相对应的调整。3,软件版本。rancher-2.2.2kubernetes-1.13.5rke-v0.2.2kubectl-v1.13.5helm-v2.13.1tiller-v2.13.14,架构示意。2,初始化环境。初始化部分,三台node机器都要操作。1,关闭相关服务关闭防火墙systemctl stop firewalldsystemctl disable firewalld关闭setlinx$ sudo setenforce 0$ grep SELINUX /etc/selinux/configSELINUX=disabled关闭swapswapoff -a && sed -i '/ swap / s/^\(.*\)$/#\1/g' ...
Promethes监控华为S5720交换机Promethes监控华为S5720交换机PDF版本 一、部署Promethes 1.1 下载安装包 wget -c https://github.com/prometheus/snmp_exporter/releases/download/v0.18.0/snmp_exporter-0.18.0.linux-amd64.tar.gz 1.2 解压至 /data/tools/ [root@snmp:/root]# groupadd prometheus [root@snmp:/root]# useradd -g prometheus -s /sbin/nologin prometheus -d /data/tools/prometheus [root@snmp:/root]# tar -zxf prometheus-2.18.1.linux-amd64.tar.gz -C /data/tools/ [root@snmp:/data/tools]# mv prometheus-2.18.1.linux-amd64/* prometheus/ [root@snmp:/data/tools]# rm -fr prometheus-2.18.1.linux-amd64 [root@snmp:/data/tools]# cd prometheus/ [root@snmp:/data/tools/prometheus]# mkdir -p {data,config,logs,bin} [root@snmp:/data/tools/prometheus]# mv prometheus promtool bin/ [root@snmp:/data/tools/prometheus]# mv prometheus.yml config/ [root@snmp:/data/tools/prometheus]# chown -R prometheus:prometheus * 1.3 设置环境变量 cat >> /etc/profile << EOF export PROMETHEUS_HOME=/data/tool...
使用 Python 脚本自动备份华为路由器/交换机配置原版英文地址: http://www.techspacekh.com/automate-backup-huawei-router-switch-configuration-with-python-script/1. 概述需要及时备份网络设备的配置文件,以确保设备的安全性、可靠性和服务可用性。如果设备上发生故障,备份配置文件可以还原到设备,以快速恢复服务连续性。配置备份必须仅使用安全协议(如 SFTP 或 SSH)进行操作。在这篇文章中,我们将为使用Python脚本的华为路由器/交换机设备列表进行配置备份,该列表使用SSH安全协议在运行 CentOS7 的Linux服务器上运行。2. 先决条件在本教程中,它被认为是:a.您已经安装 RHEL/CentOS 7 Linux 服务器并正常运行。如果您没有,您可能想阅读此链接。最小 RHEL/CentOS 7 安装与逻辑卷管理器 (LVM).b.您已经完成了初始服务器设置。请参阅此链接最小RHEL/CentOS 7 初始服务器设置。c. 您已经在华为路由器和交换机上完成了 SSH 配置,请参阅此链接华为路由器AR2220上的SSH配置华为交换机 S5700 上的 SSH 配置3. 方案图有一个运行 CentOS7 的 Linux 服务器,并连接到华为路由器和交换机。从Linux服务器,我们可以远程SSH到华为路由器和交换机。您可以在此处下载 Python ...
Oracle 打补丁报错:OPatch failed with error code 73一、问题描述        今天要给Oracle数据库软件打补丁,操作过程中报错 “OPatch failed with error code 73” ,通过具体报错信息后得知是libclntsh.so.11.1文件被占用了,通过一路追查后得知某程序占用后,停掉相应的程序后打补丁通过。二、实验1.打补丁(未成功) [oracle@suzzy 27734982]$ opatch applyOracle Interim Patch Installer version 11.2.0.3.19Copyright (c) 2018, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle/product/10.2.0/dbCentral Inventory : /oracle/oraInventory   from           : /oracle/product/10.2.0/db/oraInst.locOPatch version    : 11.2.0.3.19OUI version       : 11.2.0.4.0Log file location : /oracle/product/10.2.0/db/cfgtoollogs/opatch/opatch2018-09-05_14-28-26PM_1.logVerifying environment and performing prerequisite checks...Prerequisite check "CheckActiveFilesAndExecutables" failed.The ...
Mysql连接数过多,应急处理方法一、问题描述        今天突然接到个问题,网页报错:503 Service Temporarily Unavailable。经过查询发现是某个用户的连接超级多,已经将数据库连接占满。处理方案,即时杀掉堵塞的进程,之后可以扩大max_connections参数。二、处理方法1.查询连接情况root@localhost > show processlist;…...1001 rows in set (0.00 sec)root@localhost > show variables like '%proces%';Empty set (0.00 sec)2.检查参数root@localhost > show global status like 'Max_used_connections';+----------------------+-------+| Variable_name | Value |+----------------------+-------+| Max_used_connections | 1001 |+----------------------+-------+1 row in set (0.00 sec)3.通过命令生成杀进程脚本root@localhost > select concat('KILL ',id,';') from information_schema.processlist where user=’sam' into outfile...
oracle sysaux表空间满了处理办法用如下语句查询表空间 select upper(f.tablespace_name) "ts-name",       d.tot_grootte_mb "ts-bytes(m)",       d.tot_grootte_mb - f.total_bytes "ts-used (m)",       f.total_bytes "ts-free(m)",       to_char(round((d.tot_grootte_mb - f.total_bytes) / d.tot_grootte_mb * 100,                     2),               '990.99') "ts-per"         from (select tablespace_name,               round(sum(bytes) / (1024 * 1024), 2) total_bytes,               round(max(bytes) / (1024 * 1024), 2) max_bytes          from sys.dba_free_space         group by tablespace_name) f,      &n...
oracle 分区表删除分区或是删除分区表数据时,导致索引失效一、描述       今天有个小任务就是要删除些数据,哈哈,先自己小开心一下。因为要删除的数据表是我之前转换成的分区表。这个分区表是按照里面有个创建时间字段来分区的,1个季度为1个分区。所以我现在要将2017年7月1日之前的数据删除(数据量约1000万),可以直接删除表分区数据就好。如果要是用delete去删除这么多的数据,我还要写存储过程,分批提交的这样做。就是这样的一简单的truncate partition 引发了后继的业务故障。最终查询到该表的索引失效,重建立后恢复。真是汗!二、实验1.创建环境SQL> create table TEST_PARTAS (id number(11), ACCOUNT_ID number(11) ,CTIME date)  2 partition by range (CTIME)  3 interval( NUMTOYMINTERVAL(3,'month'))  4 (partition P0 values less than (TO_DATE('2016-01-01','yyyy-mm-dd')),  5 partition p1 values less than (to_date('2017-01-01','yyyy-mm-dd')));Table created.SQL>...
oracle sysaux表空间文件过大的处理方法 一般来讲除开业务数据存放的表空间,DBA要着重关注SYSTEM,SYSAUX,UNDO,TEMP表空间,SYSTEM表空间的大小一般是衡定的,UNDO和TEMP表空间的大小由数据库的业务情况决定,而SYSAUX表空间在默认条件下你如果不做任何配置,随着时间的推移,会膨胀的越来越大!SYSAUX表空间做为SYSTEM表空间的辅助表空间,主要存放EM相关的内容以及表统计信息,AWR快照,审计信息等,个人认为,如果你的SYSAUX表空间大小超过2G,那么该考虑让他减肥了!  一:使用下列语句查询表空间使用率  SELECT * FROM (  SELECT D.TABLESPACE_NAME,          SPACE || 'M' "SUM_SPACE(M)",          BLOCKS "SUM_BLOCKS",          SPACE - NVL ...
Mysql连接数过多,应急处理方法一、问题描述        今天突然接到个问题,网页报错:503 Service Temporarily Unavailable。经过查询发现是某个用户的连接超级多,已经将数据库连接占满。处理方案,即时杀掉堵塞的进程,之后可以扩大max_connections参数。二、处理方法1.查询连接情况root@localhost > show processlist;…...1001 rows in set (0.00 sec)root@localhost > show variables like '%proces%';Empty set (0.00 sec)2.检查参数root@localhost > show global status like 'Max_used_connections';+----------------------+-------+| Variable_name | Value |+----------------------+-------+| Max_used_connections | 1001 |+----------------------+-------+1 row in set (0.00 sec)3.通过命令生成杀进程脚本root@localhost > select concat('KILL ',id,';') from information_schema.processlist where user=’sam' into outfil...
MySql5.7 longtext表字段特殊字符插入与更新方法表zbp_post,最后一个字段如下图。最后一列 log_meta,有一行数据如下内容如下a:2:{s:28:"passwordvisit_enable_encrypt";s:1:"1";s:22:"passwordvisit_password";s:8:"8061";}此列是 longtext类型,使用以下方法更新,提示报错。update zbp_post set log_Meta=(SELECT log_Meta FROM zbp_post WHERE log_ID='2367') where log_Status='2'MySQL 返回: #1093 - You can't specify target table 'zbp_post' for update in FROM clause在phpmyadmin中,给字段写入数据后,提示命令如下:UPDATE `zbp_post` SET `log_Meta` = 'a:2:{s:28:\"passwordvisit_enable_encrypt\";s:1:\"1\";s:22:\"passwordvisit_password\";s:8:\"8061\";}' WHERE `zbp_post`.`log_ID` = 2366;看来特殊字符 "  / 之类的加转义字符\就可以在 mysql中执行命令了,但是不能在phpmyadmin中执行。
    总共265页,当前第41页 | 页数:
  1. 31
  2. 32
  3. 33
  4. 34
  5. 35
  6. 36
  7. 37
  8. 38
  9. 39
  10. 40
  11. 41
  12. 42
  13. 43
  14. 44
  15. 45
  16. 46
  17. 47
  18. 48
  19. 49
  20. 50
  21. 51