<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lf_wangchao123的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lf_wangchao123</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lf_wangchao123]]></copyright><item><title><![CDATA[Centos7.x yum安装docker-ce]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/107710443</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/107710443</guid><author>lf_wangchao123</author><pubDate>Fri, 31 Jul 2020 11:55:14 +0800</pubDate><description><![CDATA[Centos7.x安装 docker-ce
配置centos yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo

卸载旧版本docker组件
yum remove docker \
              docker-client \
              docker-client-latest \
         ]]></description><category></category></item><item><title><![CDATA[Centos7.x 进入单用户]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/106171922</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/106171922</guid><author>lf_wangchao123</author><pubDate>Sun, 17 May 2020 11:36:59 +0800</pubDate><description><![CDATA[Centos 进入单用户
重启操作系统进入开机页面

按e进行编辑

往下翻找到如下

将ro 改为rw后添加 init=/sysroot/bin/sh 后按Ctrl+x

进入单用户后，执行chroot /sysroot chroot用来切换系统，/sysroot 为原始系统

切换成功后可对原始系统进行修改操作。例如：修改root密码、修改因配置问题无法正常启动操作系统等一系列问题。

...]]></description><category></category></item><item><title><![CDATA[Rsync daemon工作模式配置]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/105810884</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/105810884</guid><author>lf_wangchao123</author><pubDate>Tue, 28 Apr 2020 12:31:38 +0800</pubDate><description><![CDATA[Rsync部署
1、部署环境
master  192.168.1.101  centos 7.7
slave   192.168.1.102  centos 7.7

2、部署rsync daemon工作模式
192.168.1.101配置
2.1、查看是否安装rsync
    
rpm -qa rsync

2.2、添加rsync用户

useradd -s /sbin/nologin rsy...]]></description><category></category></item><item><title><![CDATA[Linux 使用curl认证深信服上网行为管理]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/105810834</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/105810834</guid><author>lf_wangchao123</author><pubDate>Tue, 28 Apr 2020 12:24:21 +0800</pubDate><description><![CDATA[Linux 使用curl认证深信服上网行为管理
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --data 'opr=pwdLogin&amp;userName=用户&amp;pwd=密码&amp;rememberPwd=0}' http://深信服地址/ac_portal/login.php 


...]]></description><category></category></item><item><title><![CDATA[Docker使用http上传镜像至Harbor私有仓库]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/103075899</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/103075899</guid><author>lf_wangchao123</author><pubDate>Thu, 14 Nov 2019 22:14:32 +0800</pubDate><description><![CDATA[Docker使用http上传镜像至Harbor私有仓库
修改docker.service文件在ExecStart变量后添加--insecure-registry=harbor域名
	
vi /usr/lib/systemd/system/docker.service

注释原有ExecStart变量行

#ExecStart=/usr/bin/dockerd -H fd:// --containe...]]></description><category></category></item><item><title><![CDATA[通过access.log统计Nginx客户端访问次数]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102724122</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102724122</guid><author>lf_wangchao123</author><pubDate>Thu, 24 Oct 2019 15:21:51 +0800</pubDate><description><![CDATA[1、统计命令如下
sort -u  access.log | grep IP | awk -F: '{print $2}' |awk -F, '{print $1}' | awk -F'"' '{print $2}' | uniq -c

2、解释
sort 排序
grep 筛选
awk 检索
uniq 统计


]]></description><category></category></item><item><title><![CDATA[MySQL全量备份/备份脚本/计划任务]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102703456</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102703456</guid><author>lf_wangchao123</author><pubDate>Wed, 23 Oct 2019 16:33:27 +0800</pubDate><description><![CDATA[1、MySQL全量备份脚本
vi /sh/mysqlback.sh

#!/bin/sh
##清除/data/back目录7天之前以.sql为结尾的文件
find /data/back/ -mtime +7 -name "*.sql" -exec rm -rf {} \; 
##全量备份MySQL库并使用gizp压缩
mysqldump -uroot -pxxxxxx  mysql | gzip ...]]></description><category></category></item><item><title><![CDATA[Linux ssh使用秘钥文件登录并禁止使用密码登录]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102675951</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102675951</guid><author>lf_wangchao123</author><pubDate>Tue, 22 Oct 2019 09:53:18 +0800</pubDate><description><![CDATA[1、使用ssh-keygen生成秘钥对儿
ssh-keygen -t rsa -b 4096


2、进入/root/.ssh/ 该目录
cd /root/.ssh/

3、复制id_rsa.pub文件并重命名为authorized_keys
	cp  id_rsa.pub authorized_keys 

4、将/root/.ssh/下的id_rsa文件使用rz命令或使用winscp、file...]]></description><category></category></item><item><title><![CDATA[Centos/Redhat挂载本地镜像配置yum源]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102657055</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102657055</guid><author>lf_wangchao123</author><pubDate>Mon, 21 Oct 2019 09:08:53 +0800</pubDate><description><![CDATA[1、使用filezilla、winscp等软件将iso上传至服务端
2、挂载本地镜像
mkdir /mnt/centos &amp;&amp; mount -o loop /tmp/CentOS-7-x86_64-DVD-1810.iso /tmp/centos

3、配置yum源(以centos为例配置如下)
vi /etc/yum.repos.d/local.repo

[base]
name...]]></description><category></category></item><item><title><![CDATA[Centos6.x MySQL5.7 yum安装]]></title><link>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102621471</link><guid>https://blog.youkuaiyun.com/lf_wangchao123/article/details/102621471</guid><author>lf_wangchao123</author><pubDate>Fri, 18 Oct 2019 11:12:38 +0800</pubDate><description><![CDATA[1、关闭SElinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config (永久关闭)
reboot （重启服务器）
setenforce 0 （临时关闭无须重启）

2、下载MySQL mysql-5.7.28-1.el6.x86_64.rpm-bundle.tar
地址：https://cdn.mysql.co...]]></description><category></category></item></channel></rss>