<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[绮梦寒宵的博客]]></title><description><![CDATA[学无止境，心态放正！]]></description><link>https://blog.csdn.net/weixin_44901564</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_44901564]]></copyright><item><title><![CDATA[bat脚本循环创建文件]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/118542968</link><guid>https://blog.csdn.net/weixin_44901564/article/details/118542968</guid><author>weixin_44901564</author><pubDate>Wed, 07 Jul 2021 11:20:56 +0800</pubDate><description><![CDATA[@echo off

rem 设置颜色
color a

rem 显示时间
echo %date:~0,10% %time:~0,8%

rem 传入参数
set /p s=请输入开始范围: 
set /p e=请输入结束范围:

rem for循环创建文件 
echo ==================================================== 
for /l %%i in (%s%,1,%e%) do (
    echo 创建文件: h%%i.html 2&gt;E:\h.]]></description><category></category></item><item><title><![CDATA[dos命令创建空文件]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/113311850</link><guid>https://blog.csdn.net/weixin_44901564/article/details/113311850</guid><author>weixin_44901564</author><pubDate>Thu, 28 Jan 2021 10:56:18 +0800</pubDate><description><![CDATA[方法1：echo . 2&gt;EmptyFileName.txt
方法2：type nul &gt; EmptyFileName.txt
方法3：copy nul &gt; EmptyFileName.txt

]]></description><category></category></item><item><title><![CDATA[Linux find命令详解]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/112941038</link><guid>https://blog.csdn.net/weixin_44901564/article/details/112941038</guid><author>weixin_44901564</author><pubDate>Wed, 27 Jan 2021 16:34:55 +0800</pubDate><description><![CDATA[文章目录一、find基本介绍与命令格式二、find命令参数三、操作符四、输出处理形式五、实例
一、find基本介绍与命令格式
1.find命令基本介绍
    find顾名思义就是查找，find命令主要沿着目录结构依次向下遍历，匹配符合条件的文件，可以附带执行相应的操作选项，默认的操作结果是打印出符合条件的文件与目录。如果使用该命令时，不设置任何参数，则 find 命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示
2.find命令格式
find 路径 -命令参数 [输出处理形式]
]]></description><category></category></item><item><title><![CDATA[Linux服务器入侵排查基础]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/112652471</link><guid>https://blog.csdn.net/weixin_44901564/article/details/112652471</guid><author>weixin_44901564</author><pubDate>Tue, 19 Jan 2021 17:53:11 +0800</pubDate><description><![CDATA[文章目录账号安全1.检查用户信息文件/etc/passwd2.检查影子文件/etc/shadow检查端口检查开机启动项检查计划任务检查异常文件检查系统日志
账号安全
1.检查用户信息文件/etc/passwd
    Linux 系统中的 /etc/passwd 文件，是系统用户配置文件，存储了系统中所有用户的基本信息，并且所有用户都可以对此文件执行读操作。
首先我们先了解一下这个文件包含哪些内容：
[root@test1 ~]#cat /etc/passwd
root:x:0:0:root:/root:/]]></description><category></category></item><item><title><![CDATA[Centos7编译安装zabbix-5.0 server端（超级详细）与配置并且启动Agent]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/112577130</link><guid>https://blog.csdn.net/weixin_44901564/article/details/112577130</guid><author>weixin_44901564</author><pubDate>Wed, 13 Jan 2021 20:46:52 +0800</pubDate><description><![CDATA[文章目录1.环境2.编译安装过程
1.环境
1.系统：阿里云Centos7
2.确保已安装LNMP环境
下载zabbix-5.0.7源码包
①访问网址：https://www.zabbix.com/cn/download
②选择Zabbix Source，如下图：

③选择Zabbix 5.0 LTS，然后点击下载即可

2.编译安装过程
打算将zabbix安装在~/opt目录下，将源码压缩包移动到~/opt目录下。。。
①解压源码包
[ops@test1 ~/opt]$ tar -zxvf zabbix-]]></description><category></category></item><item><title><![CDATA[Centos非root用户登录很慢：/usr/bin/xauth: timeout in locking authority file /home/ops/.Xauthority]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/112555573</link><guid>https://blog.csdn.net/weixin_44901564/article/details/112555573</guid><author>weixin_44901564</author><pubDate>Wed, 13 Jan 2021 10:56:11 +0800</pubDate><description><![CDATA[当使用非root用户登录CentOS时，如果发现很慢，而且弹出以下信息：
/usr/bin/xauth: timeout in locking authority file /home/ops/.Xauthority
原因：这是是因为在创建用户时，用户家目录属组和属主不对，或者在使用的时候不小心把用户家目录属主或者属组改了导致的

解决：将用户家目录的属主和属组修改正切就好了，再次登录时，会重新创建一个这样的文件，下次登录就快了
例如我使用的是ops用户：
chown ops:ops /home/ops

]]></description><category></category></item><item><title><![CDATA[SVN常用命令集合（笔记）]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108384630</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108384630</guid><author>weixin_44901564</author><pubDate>Tue, 12 Jan 2021 16:12:28 +0800</pubDate><description><![CDATA[svn服务器的ip为192.168.1.2
1.将服务器上的代码下载到本地
cd &lt;需要下载代码的目录&gt;
svn  co svn://192.168.1.1/目录或文件 --username 用户名 --password 密码
svn checkout  = svn co
注：如果不带--password 参数传输密码的话，会提示输入密码，建议不要用明文的--password 选项。
2.将本地修改的数据同步到服务器
svn ci -m “提交备注信息文本”
svn commit = svn c]]></description><category></category></item><item><title><![CDATA[Linux文本处理三剑客之grep详解]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/104556127</link><guid>https://blog.csdn.net/weixin_44901564/article/details/104556127</guid><author>weixin_44901564</author><pubDate>Tue, 12 Jan 2021 11:17:23 +0800</pubDate><description><![CDATA[一、grep工具介绍
Linux系统grep命令只要是用于查找文件里符合条件的字符串，通过各个选项的配合，能进行花样查找匹配去满足我们的需求。
grep有两个很大的有点，一是搜索非常快，而是可以支持扩展正则，通过正则表达式可以使grep变得更加强大。

...]]></description><category></category></item><item><title><![CDATA[Pycharm常用快捷键与常用设置]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/112366471</link><guid>https://blog.csdn.net/weixin_44901564/article/details/112366471</guid><author>weixin_44901564</author><pubDate>Fri, 08 Jan 2021 19:27:47 +0800</pubDate><description><![CDATA[PyCharm常用快捷键
      数量使用开发工具的快捷键，可以有效提高程序开发的效率；
最重要的快捷键




Ctrl+Shift+A
万能命令行
连续按Shift两次
查看资源文件



注释




Ctrl+/
注释选中行



光标操作




Ctrl+Alt+Enter
向上插入
Shift+Enter
向下插入




End
光标




操作代码




Ctrl+D
复制、粘贴一行
Ctrl+Y
删除一行




Shift+F6
重命名
Ctrl+O
复写代码


格式代码及其]]></description><category></category></item><item><title><![CDATA[Linux系统开机后/etc/rc.d/rc.local文件中的命令没有执行（已解决）]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/111995168</link><guid>https://blog.csdn.net/weixin_44901564/article/details/111995168</guid><author>weixin_44901564</author><pubDate>Wed, 30 Dec 2020 17:37:49 +0800</pubDate><description><![CDATA[今天想将linux系统上的svn服务添加到开机自启动，结果重启机器后发现svn服务根本没有起来，检查了添加到/etc/rc.d/rc.local文件的命令没有问题，如下：
看了文件的注释部分才知道，原来还要给/etc/rc.d/rc.local文件添加执行权限，马上查看了一下文件的权限，果然没有执行权限，如下图：

然后给/etc/rc.d/rc.local文件加了执行权限之后，重启机器，果然svn夜随开机启动了
chmod +x /etc/rc.d/rc.local

...]]></description><category></category></item><item><title><![CDATA[Shell脚本实现对Linux系统资源一键查询与监控报警]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/111994274</link><guid>https://blog.csdn.net/weixin_44901564/article/details/111994274</guid><author>weixin_44901564</author><pubDate>Wed, 30 Dec 2020 17:11:29 +0800</pubDate><description><![CDATA[在服务器的运行过程中，经常需要对服务器各种资源进行监控，例如：CPU的负载监控，内存利用率监控，磁盘的使用率监控等等，以在系统出现异常时及时报警，通知系统管理员，本文就是个人根据自己的需求以shell脚本实现对系统资源的监控报警以及一键查询
需求：
1.监控CPU负载情况，并且邮件报警
2.监控内存使用情况，并且邮件报警
3.监控磁盘空间使用情况，并且邮件报警
4.监控redis服务数据占用内存情况，并且邮件报警
1.报警，离不开邮件啦，先搭一个邮件服务器，如何搭建一个简单的邮件服务器，在上一篇博文已经介绍]]></description><category></category></item><item><title><![CDATA[阿里云CentOS7服务器搭建邮件服务器，端口：465]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/111914395</link><guid>https://blog.csdn.net/weixin_44901564/article/details/111914395</guid><author>weixin_44901564</author><pubDate>Tue, 29 Dec 2020 15:54:09 +0800</pubDate><description><![CDATA[之前在阿里云上搭建了mail邮件服务器，在云后台已经开放了25端口，但是邮件一直发不出去，最后提工单问了才知道自己又踩坑了。

解决：需要使用阿里云上的云服务器对外部发送邮件，可以使用阿里云邮产品或者使用第三方邮件服务商提供的465端口。这里我选择配置465端口号来发送邮件，具体步骤如下：
1.安装邮件服务
yum -y install mailx
2.邮箱开启第三方授权码
具体的看个人使用的是那种邮箱，我这里使用的是163邮箱，开启第三方授权码的步骤这里就不写了
3.修改配置
vim /etc/mail.]]></description><category></category></item><item><title><![CDATA[python编程实现贪吃蛇游戏]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/111590955</link><guid>https://blog.csdn.net/weixin_44901564/article/details/111590955</guid><author>weixin_44901564</author><pubDate>Wed, 23 Dec 2020 15:21:21 +0800</pubDate><description><![CDATA[话不多说，详细的思路都在思维导图与代码注释里面了，很详细， 使用模块有pygame，sys, os, random

详细代码如下：
# -*- coding: utf-8 -*-
import pygame
from pygame.locals import *
from sys import exit
from os import environ
from random import randrange

class GreedySnakeGame:
    def __init__(self):]]></description><category></category></item><item><title><![CDATA[记：解决阿里云服务器挖矿程序恶意进程]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/109294680</link><guid>https://blog.csdn.net/weixin_44901564/article/details/109294680</guid><author>weixin_44901564</author><pubDate>Mon, 26 Oct 2020 19:59:59 +0800</pubDate><description><![CDATA[今天手机上午收到如下信息（出问题的服务器是平常自己用来测试的服务器，并没有设置任何防护）：

解决过程：
1.登录上服务器发先服务器非常卡，直接使用top -c命令检查进程CPU的占用率，果然发现了问题，看图：

/bin/dhpcd 占用了99%的内存
2.查看定时任务，是否有不明的定时任务
①使用crontab -l命令查看，没有发现不明定时任务
②cat /etc/crontab，同样没有发现不明定时任务
3.检查端口的状态
netstat -aulntp
发现tcp连接有一个不明的外国ip

复制到]]></description><category></category></item><item><title><![CDATA[初识ansible—— ansible基础及ad-hoc常用模块的使用]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108403993</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108403993</guid><author>weixin_44901564</author><pubDate>Fri, 18 Sep 2020 14:57:52 +0800</pubDate><description><![CDATA[文章目录一、介绍二、安装三、配置四、命令
一、介绍
1.定义

    ansible是一种新出现的自动化运维工具，是基于python开发的，集合了众多运维工具的优点，包括puppet、chef、func、fabric，实现了批量系统配置，批量程序部署，批量运行命令等功能。
    ansible是基于 paramiko（框架） 开发的，并且是基于模块工作的，本身没有批量部署的能力。真正具有批量部署的是ansible所运行的模块，ansible只是提供了一种框架。
    ansible不需要在远程主机上安]]></description><category></category></item><item><title><![CDATA[Linux上如何将ssh私钥复制到另一台服务器使用]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108644844</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108644844</guid><author>weixin_44901564</author><pubDate>Thu, 17 Sep 2020 15:47:31 +0800</pubDate><description><![CDATA[举个例子：
现在有三台服务器，分别为test1，test2，test3，我在test2服务器上创建了ssh的密钥对（rsa类型），我打算将公钥传到test3，将私钥复制到test1，然后使用test1服务器连接test3服务器，这三台机器上分别有用户：test1，test2，test3
操作如下：
1.在test2服务器创建ssh密钥对（rsa类型）
[root@test2 ~]# ssh-keygen
2.将公钥传到test3
[root@test2 ~]# cd .ssh/
[root@test2 ~/]]></description><category></category></item><item><title><![CDATA[linux系统搭建svn服务，限制用户权限]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108367172</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108367172</guid><author>weixin_44901564</author><pubDate>Wed, 02 Sep 2020 20:01:38 +0800</pubDate><description><![CDATA[文章目录1.搭建准备2.svn服务配置
1.搭建准备
1.安装客户端：
linux ： yum -y install svn
windows：安装TortoiseSVN客户端软件，没有的话没有关系，下面又分享连接
链接：https://pan.baidu.com/s/1UIh_qvqETozEaTq_SeGPpg
提取码：8888
2.安装服务端
yum install subversion
3.验证
svnversion --version #查看svn服务端的版本

2.svn服务配置
1.创建svn版]]></description><category></category></item><item><title><![CDATA[CentOS7安装python3.6（详细）]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108344012</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108344012</guid><author>weixin_44901564</author><pubDate>Tue, 01 Sep 2020 16:02:37 +0800</pubDate><description><![CDATA[在安装之前先从官网下载python3.6的包，我这里使用的是Python-3.6.5的源码包
1.安装依赖环境
yum -y install gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
2.解压源码包
tar -zxvf Python-3.6.5.tgz
3.解压源码包之后会生成一个]]></description><category></category></item><item><title><![CDATA[编译安装MySQL数据库5.7教程]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108198348</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108198348</guid><author>weixin_44901564</author><pubDate>Wed, 26 Aug 2020 15:26:49 +0800</pubDate><description><![CDATA[文章目录1.环境2.安装准备3.编译安装过程
1.环境
一台CentOS7.6.3的机器
2.安装准备
下载mysql-5.7.31源码包
1.登录网站https://dev.mysql.com/downloads/mysql/，如图：

2.选择Source Code

选择好后如下图展示：

3.上图显示的都是8以上版本的，我们要下载5.7.31版本，所以继续走下去，点击红色方框的内容

点击上图红色方框的内容之后，显示如下图，这时候就看到5.7.31版本了：

4.选择好mysql版本之后我们还要选择]]></description><category></category></item><item><title><![CDATA[CentOS7安装cmake-3.18.0]]></title><link>https://blog.csdn.net/weixin_44901564/article/details/108225845</link><guid>https://blog.csdn.net/weixin_44901564/article/details/108225845</guid><author>weixin_44901564</author><pubDate>Tue, 25 Aug 2020 17:55:45 +0800</pubDate><description><![CDATA[1.下载源码包
[root@test2 ~]# wget https://github.com/Kitware/CMake/releases/download/3.18.0/cmake-3.18.0.tar.gz
2.解压源码包到指定路径
[root@test2 ~]# tar -zxvf cmake-3.18.0.tar.gz -C /home/ops/
3.目录名优化
[root@test2 ~]# cd /home/ops/
[root@test2 /home/ops]# mv cmake-3.18.]]></description><category></category></item></channel></rss>