<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xiaochenwj1995的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/xiaochenwj1995</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xiaochenwj1995]]></copyright><item><title><![CDATA[部署Nextcloud+Onlyoffice]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/116398724</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/116398724</guid><author>xiaochenwj1995</author><pubDate>Mon, 14 Nov 2022 14:02:21 +0800</pubDate><description><![CDATA[一、LAMP方式安装
环境准备
centos7.7
操作系统：cnetos7.7  4核4G  40G硬盘
数据库版本：MariaDB10.2.37
php版本：php7.3
Apache版本:httpd 2.4.6
1、安装前准备
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service

关闭SElinux
##临时关闭
setenforce 0
vim /etc/selinux/config
##把SELNUX]]></description><category></category></item><item><title><![CDATA[配置chrony时间同步服务]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/119781250</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/119781250</guid><author>xiaochenwj1995</author><pubDate>Wed, 18 Aug 2021 20:40:44 +0800</pubDate><description><![CDATA[一、chrony简介
chrony 的优势：
更快的同步，从而最大程度减少了时间和频率误差，对于并非全天 24 小时运行的虚拟计算机而言非常有用
能够更好地响应时钟频率的快速变化，对于具备不稳定时钟的虚拟机或导致时钟频率发生变化的节能技术而言非常有用
在初始同步后，它不会停止时钟，以防对需要系统时间保持单调的应用程序造成影响
在应对临时非对称延迟时（例如，在大规模下载造成链接饱和时）提供了更好的稳定性
无需对服务器进行定期轮询，因此具备间歇性网络连接的系统仍然可以快速同步时钟
chrony官网：https:]]></description><category></category></item><item><title><![CDATA[centos7.9安装zabbix5.0.14]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/119736643</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/119736643</guid><author>xiaochenwj1995</author><pubDate>Tue, 17 Aug 2021 00:15:04 +0800</pubDate><description><![CDATA[一、基础环境配置
1、关闭firewalld、关闭selinux
##关闭firewalld
systemctl stop firewalld
systemctl disabled firewalld
##关闭selinux
setenforce 0 &amp;&amp; sed -i.bak 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config

2、配置yum仓库
配置zabbix仓库
wget https://repo.zabbix.com/za]]></description><category></category></item><item><title><![CDATA[redis(三)--分布式集群搭建]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/118584481</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/118584481</guid><author>xiaochenwj1995</author><pubDate>Sun, 11 Jul 2021 12:50:25 +0800</pubDate><description><![CDATA[创建集群，无需手动指定master和slave，redis-trib.rb工具会自动配置
[root@centos7 ~]# redis-trib.rb create --replicas 1 192.168.239.130:6379 192.168.239.130:6380 192.168.239.128:6379 192.168.239.128:6380 192.168.239.132:6379 192.168.239.132:6380
&gt;&gt;&gt; Creating cluster
&gt]]></description><category></category></item><item><title><![CDATA[Prometheus(一)--部署Prometheus]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/118102766</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/118102766</guid><author>xiaochenwj1995</author><pubDate>Tue, 22 Jun 2021 18:30:17 +0800</pubDate><description><![CDATA[一、安装Prometheus
下载地址：https://prometheus.io/download/

解压缩到指定目录
root@k8s-master:~/data# ls
prometheus-2.28.0-rc.0.linux-amd64.tar.gz
root@k8s-master:~/data# ls /usr/local
bin  etc  games  include  lib  man  sbin  share  src
root@k8s-master:~/data# tar xf pro]]></description><category></category></item><item><title><![CDATA[zabbix配置--拓扑图及链路流量]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/116539233</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/116539233</guid><author>xiaochenwj1995</author><pubDate>Sun, 09 May 2021 13:50:28 +0800</pubDate><description><![CDATA[1、配置网络拓扑图





编辑标签

标签里面填写
GigabitEthernet0/0/3:
↓{192.168.10.80:net.if.in[ifHCInOctets.8].last(0)} ↑{192.168.10.80:net.if.out[ifHCOutOctets.8].last(0)}
标签含义：
GigabitEthernet0/0/3: : 自己定义名称，这里表示的是交换机上的指定网口
“↓”“↑”：自定义图标，分别表示下行流量，和上行流量
192.168.10.80：表示主机
ne]]></description><category></category></item><item><title><![CDATA[kubernetes练习（一）]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/115351319</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/115351319</guid><author>xiaochenwj1995</author><pubDate>Thu, 15 Apr 2021 14:02:26 +0800</pubDate><description><![CDATA[1、查看pod日志，并将日志中Error的行记录到指定文件
pod名称：web
文件：/opt/web_error.log
[root@k8s-master ~]# kubectl logs web-nginx-b9c949c47-mgx9k | grep error
2021/03/25 08:41:05 [error] 6#6: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), cli]]></description><category></category></item><item><title><![CDATA[shell脚本（二）]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/114487675</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/114487675</guid><author>xiaochenwj1995</author><pubDate>Tue, 09 Mar 2021 22:48:32 +0800</pubDate><description><![CDATA[1、编写脚本/root/bin/systeminfo.sh,显示当前主机系统信息，包括主机名， IPv4地址，操作系统版本，内核版本， CPU型号，内存大小，硬盘大小
[root@centos7 scripts]# vim systeminfo.sh 

#!/bin/bash
#****************************
#Author chenwj
#Date: 2021-03-07
#FileName: systeminfo.sh
#***************************]]></description><category></category></item><item><title><![CDATA[Kubernetes（十二）--网络模型和网络策略]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/113514778</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/113514778</guid><author>xiaochenwj1995</author><pubDate>Fri, 05 Feb 2021 16:25:04 +0800</pubDate><description><![CDATA[一、Kubernetes网络模型和CNI插件
在Kubernetes中设计了一种网络模型，要求无论容器运行在集群中的哪个节点，所有容器都能通过一个扁平的网络平面进行通信，即在同一IP网络中。需要注意的是：在K8S集群中，IP地址分配是以Pod对象为单位，而非容器，同一Pod内的所有容器共享同一网络名称空间。
1、Kubernetes网络模型
​
容器间的通信：同一个Pod内的多个容器间的通信，它们之间通过lo网卡进行通信。
Pod之间的通信：通过Pod IP地址进行通信。
Pod和Service之间的通信：]]></description><category></category></item><item><title><![CDATA[Kubernetes（十）--dashboard认证访问]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/113464387</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/113464387</guid><author>xiaochenwj1995</author><pubDate>Mon, 01 Feb 2021 12:51:45 +0800</pubDate><description><![CDATA[一、Dashboard简介
在 Kubernetes 社区中，有一个很受欢迎的 Dashboard 项目，它可以给用户提供一个可视化的 Web 界面来查看当前集群的各种信息。用户可以用 Kubernetes Dashboard 部署容器化的应用、监控应用的状态、执行故障排查任务以及管理 Kubernetes 各种资源。
二、部署Dashboard
官方参考文档：
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashbo]]></description><category></category></item><item><title><![CDATA[Python练习（一）]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/112610094</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/112610094</guid><author>xiaochenwj1995</author><pubDate>Sat, 16 Jan 2021 14:55:38 +0800</pubDate><description><![CDATA[一、打印正方形
##打印一个长度为n的正方形5

num = int (input("num:"))
for i in range(num): ##控制行数
    for j in range (num): ##控制列数
        print ("*  ",end='')
    print ()

##打印一个空心的长度为n的正方形
for i in range (num):
    if i == 0 or i == (num-1) :
        print ('* '*num)
    ]]></description><category></category></item><item><title><![CDATA[mysql5.6账户授权问题解决]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/110089310</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/110089310</guid><author>xiaochenwj1995</author><pubDate>Tue, 29 Dec 2020 12:53:15 +0800</pubDate><description><![CDATA[在创建账号时遇到了“ERROR 1044 (42000): Access denied for user ‘root’@‘localhost’ to database xxx”错误，如下所示
mysql&gt; grant all on zabbix.* to 'zabbix'@'localhost' IDENTIFIED BY 'zabbix';
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'zabbi]]></description><category></category></item><item><title><![CDATA[zabbix监控配置（九）--监控SUSE15]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/111284704</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/111284704</guid><author>xiaochenwj1995</author><pubDate>Mon, 28 Dec 2020 17:35:06 +0800</pubDate><description><![CDATA[一、到zabbix官网下载适合suse 15 sp1的zabbix agent安装包
zabbix官网下载地址：https://repo.zabbix.com/zabbix/4.0/sles/15/x86_64/
这里下载的是agent版本是zabbix-agent-4.0.10-1.el15.x86_64.rpm

也可以到suse官方网站下载zabbix agent安装包
suse官方网址：https://software.opensuse.org/download/package?project=se]]></description><category></category></item><item><title><![CDATA[zabbix4.0监控配置（八）--配置企业微信告警]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/111173816</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/111173816</guid><author>xiaochenwj1995</author><pubDate>Mon, 28 Dec 2020 17:32:35 +0800</pubDate><description><![CDATA[zabbix的告警机制支持通过企业微信的方式，接下来将讲解如何通过配置企业微信把zabbix告警信息发送给管理员。
一、企业微信告警需要分三步走,第一步申请企业公众号,第二步撰写告警脚本,第三步配置zabbix-web界面

圈起来的都是要填写的,这里可选择部门,也可以是指定人员

创建完成后,会转到应用管理界面,AgentID和secret是需要记录的,

另外还要记录企业ID,点击我的企业,最下方有企业ID.


二、在zabbix-server端编写报警脚本，这里使用的是Python脚本
[root@]]></description><category></category></item><item><title><![CDATA[zabbix监控（七）--snmp监控网络交换机]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/110240509</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/110240509</guid><author>xiaochenwj1995</author><pubDate>Mon, 28 Dec 2020 11:03:12 +0800</pubDate><description><![CDATA[一、snmp协议概述
简单网络管理协议（SNMP） 是专门设计用于在 IP 网络管理网络节点（服务器、工作站、路由器、交换机及HUBS等）的一种标准协议，它是一种应用层协议。
特点：
（1）基于TCP/IP互联网的标准协议，传输层协议一般用UDP
（2）自动化网络管理。网络管理员可以利用SNMP平台在网络上的节点检索信息、修改信息、发现故障、完成故障诊断、进行容量规划和生成报告
（3）屏蔽不同设备的物理差异，实现对不同厂商产品的自动化管理。SNMP只提供最基本得功能集，使得管理任务与被管理设备的物理特征和实]]></description><category></category></item><item><title><![CDATA[zabbix监控常见问题汇总]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/111137333</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/111137333</guid><author>xiaochenwj1995</author><pubDate>Sun, 13 Dec 2020 17:52:10 +0800</pubDate><description><![CDATA[zabbix运行过程中突然提示server未启动,重启服务仍然无法启动


查看zabbix日志，提示发现是内存用完了，建议增加缓存参数。

tailf /var/log/zabbix/zabbix_server.log 

  1230:20180706:165735.809 [file:dbconfig.c,line:90] zbx_mem_malloc(): out of memory (requested 120 bytes)
  1230:20180706:165735.809 [file:dbc]]></description><category></category></item><item><title><![CDATA[kubernetes（七）--存储卷]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/106617302</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/106617302</guid><author>xiaochenwj1995</author><pubDate>Thu, 19 Nov 2020 12:59:51 +0800</pubDate><description><![CDATA[一、存储卷概述及类型
1、概述
由于容器本身是非持久化的，因此需要解决在容器中运行应用程序遇到的一些问题。首先，当容器崩溃时，kubelet将重新启动容器，但是写入容器的文件将会丢失，容器将会以镜像的初始状态重新开始；第二，在通过一个Pod中一起运行的容器，通常需要共享容器之间一些文件。Kubernetes通过存储卷解决上述的两个问题。
在Docker有存储卷的概念卷，但Docker中存储卷只是磁盘的或另一个容器中的目录，并没有对其生命周期进行管理。Kubernetes的存储卷有自己的生命周期，它的生命周期]]></description><category></category></item><item><title><![CDATA[suse 15破解root密码]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/109724493</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/109724493</guid><author>xiaochenwj1995</author><pubDate>Mon, 16 Nov 2020 18:47:05 +0800</pubDate><description><![CDATA[1、进入grub菜单引导界面后,选择第二个，按e
随后进入grub编辑界面

找到这个启动项

2、然后在这个启动项中的linux这行添加init=/bin/bash
3、ctrl +x 重启
4、执行下面2个命令
 mount -o remount rw /   ##表示将根文件系统重新mount为可读写
 ##chmod -v 4711 /usr/bin/passwd

5、使用passwd命令修改root用户密码
/6直接关掉系统重启,root密码已经被改掉了

...]]></description><category></category></item><item><title><![CDATA[Redis基础（一）--安装与简单配置]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/109446991</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/109446991</guid><author>xiaochenwj1995</author><pubDate>Sun, 15 Nov 2020 23:25:12 +0800</pubDate><description><![CDATA[一、Redis简介
Redis 是开源免费的，遵守BSD协议，是一个高性能的key-value非关系型数据库。
redis单线程问题
所谓的单线程指的是网络请求模块使用了一个线程（所以不需考虑并发安全性），即一个线程处理所有网络请求，其他模块仍用了多个线程。
redis采用多路复用机制：即多个网络socket复用一个io线程，实际是单个线程通过记录跟踪每一个Sock(I/O流)的状态来同时管理多个I/O流.
Redis特点：
Redis支持数据的持久化，可以将内存中的数据保存在磁盘中，重启的时候可以再次加载]]></description><category></category></item><item><title><![CDATA[nginx（三）--实现反向代理与动静分离负载均衡]]></title><link>https://blog.csdn.net/xiaochenwj1995/article/details/109287188</link><guid>https://blog.csdn.net/xiaochenwj1995/article/details/109287188</guid><author>xiaochenwj1995</author><pubDate>Sat, 31 Oct 2020 12:21:44 +0800</pubDate><description><![CDATA[一、实现反向代理
nginx反向代理示意图。

ngx_http_proxy_module模块：
转发请求至另一台主机
1、 proxy_pass URL;
Context:location, if in location, limit_except
注意： proxy_pass后面路径不带uri时，会将location的uri传递（附加）给后端主机
server {
…
server_name HOSTNAME;
location /uri/ {
proxy_pass http://host[:port]]]></description><category></category></item></channel></rss>