<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[bug记录]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/shGray</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shGray]]></copyright><item><title><![CDATA[启动MySql提示The server quit without updating PID file失败]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103699790</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103699790</guid><author>shGray</author><pubDate>Wed, 25 Dec 2019 15:21:29 +0800</pubDate><description><![CDATA[问题描述
无法启动mysql服务
解决方法：
在my.cnf配置文件里添加启动的mysql用户 user=antif

思考原因
我的mysqld的权限是root

因此我执行该命令实际是以root执行。但是我的mysql是antif用户下，因此无法启动。需要在/etc/my.inf配置文件种指定用户名。


注：以上为本人解决方法。下面整理出网上查阅的方法（对我是无效的），方便有跟我遇到同样问题...]]></description><category></category></item><item><title><![CDATA[centos忘记root密码后如何重置！]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103699420</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103699420</guid><author>shGray</author><pubDate>Wed, 25 Dec 2019 15:06:12 +0800</pubDate><description><![CDATA[忘记系统管理员密码真是件头疼的事，centos7的拯救之路如下：
第一步：
重启系统
按【e】进入启动文件界面后

第二步：
按【↓】拉到底部
找到linux16这一行

将ro改成rw
在这行最后面加上“init=/bin/sh”

第三步：
然后按【Ctrl+X】进入“单用户模式”
就会进入下图界面，输入“passwd”修改密码。
https://img-blog.youkuaiyun.com/20180...]]></description><category></category></item><item><title><![CDATA[su 无法切换账户（密码正确）一直提示Authentication failure（认证失败）]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103698938</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103698938</guid><author>shGray</author><pubDate>Wed, 25 Dec 2019 15:02:23 +0800</pubDate><description><![CDATA[场景
centOS7
依旧是解决上次赋权问题留下的bug
问题描述
su root命令无法切换。密码是正确的（我还重置root密码，具体可见另一篇博文）
最后，经过百度找到的解决办法
解决方法

登录root账户
执行以下命令ll -a /bin/su
ll -a /usr/bin/passwd


观察显示的结果

		-rwxr-xr-x. 1 root root 32096 Aug  4  ...]]></description><category></category></item><item><title><![CDATA[sshd.service启动故障"Failed to start OpenSSH Server daemon "]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103698349</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103698349</guid><author>shGray</author><pubDate>Wed, 25 Dec 2019 14:36:07 +0800</pubDate><description><![CDATA[前言
某次不小心赋权限的时候，想给当前文件夹赋权，结果，忘记了个". "，写出了如下命令
chown -R domains:domains /*
然后出现了一系列的问题。。。。。
以下均为为解决bug的过程
问题描述：
MobaXterm连接虚拟机失败，打开虚拟机，发现sshd.service服务故障

执行ssd -t 检查
（此处忘记截图，借用别人的图，还请见谅）

根据上图所述：
“bad ...]]></description><category></category></item><item><title><![CDATA[Linux权限详解（chmod、600、644、666、700、711、755、777、4755、6755、7755）【转载】]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103683109</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103683109</guid><author>shGray</author><pubDate>Tue, 24 Dec 2019 16:10:13 +0800</pubDate><description><![CDATA[权限简介

Linux系统上对文件的权限有着严格的控制，如果对某个文件执行某种操作，必须具有相对应的权限方可成功
Linux下文件的权限类型一般包括读、写、可执行。对应的字母为r、w、x.
Linux下权限的粒度有 拥有者u 、群组g 、其它组o 三种。每个文件都可以针对三个粒度，设置不同的rwx(读写执行)权限。通常情况下，一个文件只能归属于一个用户和组， 如果其它的用户想有这个文件的权限，则可...]]></description><category></category></item><item><title><![CDATA[centOS 7下无法启动网卡（systemctl  start network）错误解决办法]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/103682094</link><guid>https://blog.youkuaiyun.com/shGray/article/details/103682094</guid><author>shGray</author><pubDate>Tue, 24 Dec 2019 14:49:09 +0800</pubDate><description><![CDATA[遇到的问题
某天虚拟机无法连接ssh，检查发现无法虚拟机无法上网。
执行systemctl start network报错
问题原因：
NetworkManager与network冲突，因此停掉前一个服务即可启动network
解决方法
执行以下命令：
systemctl stop NetworkManager #关闭服务
systemctl disable NetworkManager #关闭开...]]></description><category></category></item><item><title><![CDATA[shell学习笔记（1）shell中if 常用判断整理]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/101365466</link><guid>https://blog.youkuaiyun.com/shGray/article/details/101365466</guid><author>shGray</author><pubDate>Wed, 25 Sep 2019 16:20:28 +0800</pubDate><description><![CDATA[一、字符串判断

注：字符串要注意加引号

参数如下：

[ -z"字符串"] 如果字符串为空，则返回真

[ -n "字符串"] 如果字符串非空，则返回真

[ string1 = string2 ] 字符串相等为真

[ string1 != string2 ] 字符串不相等为真

二、算数比较运算符

-eq 等于

-ne 不等于

-lt 小于

-le 小于或等于

-gt 大于...]]></description><category></category></item><item><title><![CDATA[shell学习笔记（2）shell脚本 0 1 和真假]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/101354337</link><guid>https://blog.youkuaiyun.com/shGray/article/details/101354337</guid><author>shGray</author><pubDate>Wed, 25 Sep 2019 11:59:12 +0800</pubDate><description><![CDATA[Q:为什么shell脚本中，0表示真，1表示假？

shell语言有状态码的概念

假设错误0返回false，则返回的错误只有一种类型；如果返回非零数字，则有1-255，可以表示各种错误:1为普遍错误，127意为command not find等等。

状态码
			描述
		0
			命令成功结束
		1
			通用未知错误　　
		2
			误用Shell命令
		126
			命令不可...]]></description><category></category></item><item><title><![CDATA[shell学习笔记（3）grep -v grep|awk ‘{print $2}‘ ` 表示是什么意思]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/101350925</link><guid>https://blog.youkuaiyun.com/shGray/article/details/101350925</guid><author>shGray</author><pubDate>Wed, 25 Sep 2019 11:31:55 +0800</pubDate><description><![CDATA[网上查阅shell定时脚本相关代码

其中有一句grep -v grep|awk 'awk {print $2}'不是很理解(基础知识太薄弱)


pid=`ps -ef|grep run.jar|grep -v grep|awk '{print $2}' `

经查阅资料

grep -v 意为不包括；上述语句的意思是查找除了grep下的所有信息,如下图所示；


awk '{print $2...]]></description><category></category></item><item><title><![CDATA[JAVA学习笔记（1）与日期相关的类相关知识记录]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/99714347</link><guid>https://blog.youkuaiyun.com/shGray/article/details/99714347</guid><author>shGray</author><pubDate>Mon, 19 Aug 2019 16:19:34 +0800</pubDate><description><![CDATA[介绍Java涉及日期的类

Date类
DateFormat类
Calendar类

Date类

构造函数：
一共有两个构造函数Date(); //使用当前日期和时间初始化对象
Date(long millisec);//接受一个参数，该参数是从1970年1月1日起的毫秒数


常用方法：long getTime();//返回从1970年1月1日以来表示的毫秒数
void setTime();/...]]></description><category></category></item><item><title><![CDATA[查询zookeeper状态遇到Error contacting service. It is probably not running]]></title><link>https://blog.youkuaiyun.com/shGray/article/details/95592800</link><guid>https://blog.youkuaiyun.com/shGray/article/details/95592800</guid><author>shGray</author><pubDate>Fri, 12 Jul 2019 10:32:16 +0800</pubDate><description><![CDATA[查询zookeeper状态时遇到Error contacting service. It is probably not running

系统环境：
Centos7

怎么遇到的问题
三台虚拟机的zookeeper均安装成功且已启动。但是，查询状态时遇到一下问题
Error contacting service. It is probably not running.


开始排查问题
1.查看...]]></description><category></category></item></channel></rss>