<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Katherine130的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Katherine130</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Katherine130]]></copyright><item><title><![CDATA[apt-get update]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/123072997</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/123072997</guid><author>Katherine130</author><pubDate>Tue, 22 Feb 2022 17:26:19 +0800</pubDate><description><![CDATA[apt-get update更新签名报错


W: GPG 错误：http://archive.xxos.cn/xx/xx-ALL 10.1 InRelease: 由于没有公钥，无法验证下列签名： NO_PUBKEY F49EC40DDCE76770
E: 仓库 “http://archive.xxos.cn/xx/xx-ALL 10.1 InRelease” 没有数字签名。
N: 无法安全地用该源进行更新，所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。]]></description><category></category></item><item><title><![CDATA[Ubuntu 安装MySQL，修改root密码]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/120670061</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/120670061</guid><author>Katherine130</author><pubDate>Sat, 09 Oct 2021 14:26:55 +0800</pubDate><description><![CDATA[apt命令安装MySQL， 过程中没有设置root密码。 安装完成后，无法登录root，因此修改root密码。

1、设置免密登录

修改文件/etc/mysql/mysql.conf.d/mysqld.cnf，在[mysqld]这一块中加入skip-grant-tables这句话。

修改后重启服务生效，systemctl restart mysql.service


sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]
#
# * Basic S.]]></description><category></category></item><item><title><![CDATA[Matplotlib模块学习]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/119778604</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/119778604</guid><author>Katherine130</author><pubDate>Thu, 19 Aug 2021 17:15:03 +0800</pubDate><description><![CDATA[目录

1、Pyplot

2、Matplotlib 绘图标记

标记大小与颜色

3、Matplotlib 绘图线

1、Pyplot

Pyplot 是 Matplotlib 的子库，提供了和 MATLAB 类似的绘图 API。


import matplotlib.pyplot as plt
import numpy as np

x = np.array([0, 10])
y = np.array([0, 50])

plt.plot(x, y)
plt.show()

plot() 用于画...]]></description><category></category></item><item><title><![CDATA[conda的使用：常见命令]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/119180069</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/119180069</guid><author>Katherine130</author><pubDate>Wed, 28 Jul 2021 14:55:07 +0800</pubDate><description><![CDATA[1.进入conda环境：source ~/miniconda3/bin/activate

2.查看当前环境已安装的包：conda list

3.显示所有的虚拟环境： conda env list

4.开启xxx环境： conda activate xxx

5.退出环境： source ~/miniconda3/bin/deactivate

6.新建虚拟环境： conda create -n XXX python=3.9



注意：~/miniconda3/bin是conda的安装目录，本次安装.]]></description><category></category></item><item><title><![CDATA[MySQL 数据库备份和还原命令]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/116782335</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/116782335</guid><author>Katherine130</author><pubDate>Fri, 14 May 2021 10:44:59 +0800</pubDate><description><![CDATA[数据库全表备份命令：

mysqldump -h IP -u 用户名 -p 数据库名 &gt;mydb0201.sql

备份数据库中的一张表：

mysqldump -h IP -u 用户名 -p --compact 数据库名 表名 &gt; /home/xpc/file_transfer0514.sql

还原数据库命令：

先确认存在数据库 中是否存在此database， 没有就新增：create database test;

mysql -u 用户名 -p 数据库名 &lt; mydb0201.s]]></description><category></category></item><item><title><![CDATA[sql 修改表的字段属性]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/116518380</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/116518380</guid><author>Katherine130</author><pubDate>Sat, 08 May 2021 10:45:49 +0800</pubDate><description><![CDATA[MariaDB数据库，修改数据表的字段属性的各种方法。

1.修改字段属性为NOT NULL


alter table 表名 modify 字段 字段类型 not null;

2.设置字段的默认值


alter table 表名 add default (0) for 字段 with values;

3.修改字段的属性为NOT NULL并设置默认值


alter table alarms modify column write_time datetime not null default curr]]></description><category></category></item><item><title><![CDATA[centos 使用RPM包制作本地源]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/113726541</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/113726541</guid><author>Katherine130</author><pubDate>Sat, 06 Feb 2021 15:44:26 +0800</pubDate><description><![CDATA[离线下载rpm安装包以及依赖包，制作本地源，使用dnf命令安装。

准备工作：

1.如果没有dnf，则自己安装 yum install dnf。 dnf是包管理器。

2.如果没有createrepo，安装： yum install createrepo

3.准备好rpm包



制作本地源：

1.新建一个目录，将所有的rpm包放到此目录下。


mkdir /var/pkg

2.createrepo来创建repository仓库

命令： createrepo .


[root@localho.]]></description><category></category></item><item><title><![CDATA[rpm包修改包名]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/113615329</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/113615329</guid><author>Katherine130</author><pubDate>Wed, 03 Feb 2021 17:22:35 +0800</pubDate><description><![CDATA[1.安装包

rpmrebuild下载链接： https://sourceforge.net/projects/rpmrebuild/files/rpmrebuild/2.12-1/

rpmbuild直接用yum安装 ：yum install rpm-build

2.创建目录，解压rpmrebuild文件


mkdir -p /data
mkdir -p /data/rpmbuild
mkdir -p /data/rpmbuild/BUILDROOT
mkdir -p /data/rpmbuild/S]]></description><category></category></item><item><title><![CDATA[Python3 通过dbus获取客户端缓存的登录用户]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/110926229</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/110926229</guid><author>Katherine130</author><pubDate>Wed, 09 Dec 2020 15:39:08 +0800</pubDate><description><![CDATA[DBus分为两种类型：

system bus(系统总线)，用于系统(Linux)和用户程序之间进行通信和消息的传递；

session bus(回话总线)，用于桌面(GNOME, KDE等)用户程序之间进行通信。


import dbus
session_bus = dbus.SessionBus()
system_bus = dbus.SystemBus()

To obtain a proxy object, call the get_object method on the Bus. For e.]]></description><category></category></item><item><title><![CDATA[Ubuntu下，Python源码制作deb包]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/110223359</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/110223359</guid><author>Katherine130</author><pubDate>Fri, 27 Nov 2020 10:54:20 +0800</pubDate><description><![CDATA[背景： 自己写了一个Python的qt客户端， 然后需要制作deb包

1.先贴上代码的目录结构


x@hostv6:~/mywork/my-client$ tree
.
├── 1
├── debian
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── README.Debian
│ ├── rules
│ ├── source
│ │ ├── format
│ │ └── loc...]]></description><category></category></item><item><title><![CDATA[Ubuntu环境下pymysql 安装没有root密码，修改root密码。]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/109995775</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/109995775</guid><author>Katherine130</author><pubDate>Mon, 23 Nov 2020 14:39:01 +0800</pubDate><description><![CDATA[不要密码登录MySQL： sudo mysql -uroot

修改密码：密码修改为123456


use mysql;

update mysql.user set authentication_string=password('123456') where user='root' and Host ='localhost';
update user set plugin="mysql_native_password"; 
flush privileges;
quit;

然后就可以了。
...]]></description><category></category></item><item><title><![CDATA[freeIPA的ldap数据连接报错：ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: 拒绝连接]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/109177458</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/109177458</guid><author>Katherine130</author><pubDate>Tue, 20 Oct 2020 11:17:06 +0800</pubDate><description><![CDATA[没改ldap，但是数据库拒绝连接。报错：ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: 拒绝连接

先检查防火墙状态：systemctl status firewalld --Active: inactive (dead)关闭状态

再查看dirsrv服务在不在运行：systemctl status dirsrv@EXAMPLE.COM--Active: inactive (dead)关闭状态

dirsrv是关闭状态...]]></description><category></category></item><item><title><![CDATA[CSS样式冲突问题]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/109155053</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/109155053</guid><author>Katherine130</author><pubDate>Mon, 19 Oct 2020 09:53:12 +0800</pubDate><description><![CDATA[背景：框架的CSS有一个样式navbar-default和navbar-pf，引入bootstrap.min.css文件也有一个一样的，导致样式冲突，框架的样式去优先使用了bootstrap.min.css中的navbar-default和navbar-pf样式。

解决：修改框架的CSS优先级， 增加两个样式

#container .navbar-default 通过ID container去找class navbar-default， 此时他的优先级最高。


#container .navbar-d]]></description><category></category></item><item><title><![CDATA[Docker-Compose常用命令合集]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/108884718</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/108884718</guid><author>Katherine130</author><pubDate>Wed, 30 Sep 2020 14:33:38 +0800</pubDate><description><![CDATA[Docker-Compose项目是Docker官方的开源项目，负责实现对Docker容器集群的快速编排。
Docker-Compose将所管理的容器分为三层，分别是工程（project），服务（service）以及容器（container）。Docker-Compose运行目录下的所有文件（docker-compose.yml，extends文件或环境变量文件等）组成一个工程，若无特殊指定工程名即为当前目录名。

Compose允许用户通过一个单独的docker-compose.yml模板文件（YAML 格]]></description><category></category></item><item><title><![CDATA[docker部署odoo应用，前后端分离等操作]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/104422557</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/104422557</guid><author>Katherine130</author><pubDate>Wed, 30 Sep 2020 14:33:14 +0800</pubDate><description><![CDATA[Docker启动odoo应用：

docker images

运行postgresql

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10

运行odoo

docker run -p 8069:8069 --name odoo -...]]></description><category></category></item><item><title><![CDATA[FreeIPA环境搭建（二）：客户端环境配置]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/108884268</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/108884268</guid><author>Katherine130</author><pubDate>Wed, 30 Sep 2020 14:07:20 +0800</pubDate><description><![CDATA[1. 设置hostname：

vim /etc/hostname

hostname set-hostname kclient.example.test

kclient.example.test替换为自己的客户端名。

2. 配置dns服务地址

在网络配置中将ipa服务器的ip地址配置为客户机的dns，配好后，应当可以直接ping通服务器的域名。

3. 下载客户端包

apt-get install freeipa-client

4. 客户端加域：

ipa-client-install

配置了]]></description><category></category></item><item><title><![CDATA[FreeIPA环境搭建（一）：服务端环境配置]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/108884125</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/108884125</guid><author>Katherine130</author><pubDate>Wed, 30 Sep 2020 14:01:57 +0800</pubDate><description><![CDATA[1.系统：Ubuntu

2.环境配置

设置主机名：设置hostname，如 kserver.example.test (尽量不要和网上的域名相同)

hostnamectl set-hostnamekserver.example.test

3.依赖安装

运行依赖：由于依赖过多，可以采取如下方式先安装后卸载。

# dnf install ipa-server ipa-server-dns

卸载包：

# dnf remove --noautoremove ipa-server ipa-clien.]]></description><category></category></item><item><title><![CDATA[FreeIPA框架常用命令合集]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/108883987</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/108883987</guid><author>Katherine130</author><pubDate>Wed, 30 Sep 2020 13:51:18 +0800</pubDate><description><![CDATA[klist -k &lt;keytab&gt; :详列keytab
	Kerberos也有一些命令工具，如klist、kadmin、kinit、kdestroy等，建议熟练使用。
	kadmin.local可以对Kerberos进行管理。
	查看IPA服务：systemctl status ipa
	查看freeIPA服务状态：ipactl status
	重启IPA服务：ipactl restart
	重启http服务: systemctl restart httpd
	查看http服务状态: syste]]></description><category></category></item><item><title><![CDATA[在odoo中点击菜单，弹出自定义页面。]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/104813050</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/104813050</guid><author>Katherine130</author><pubDate>Thu, 12 Mar 2020 10:32:52 +0800</pubDate><description><![CDATA[采用odoo的qweb机制开发自定义界面。

一、创建自定义模板页面

模板文件/static/src/xml/base.xml


&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;templates id="template" xml:space="preserve"&gt;
        &lt;div t-name="quality...]]></description><category></category></item><item><title><![CDATA[Python开发 根据钉钉的code换取用户信息]]></title><link>https://blog.youkuaiyun.com/Katherine130/article/details/104610541</link><guid>https://blog.youkuaiyun.com/Katherine130/article/details/104610541</guid><author>Katherine130</author><pubDate>Mon, 02 Mar 2020 14:02:31 +0800</pubDate><description><![CDATA[import requests
class dingding():
    #获取钉钉的access_token
    def ding_get_token(self):
        url=DINGURL+'/gettoken'
        param ={"appkey":APPKEY,"appsecret":APPSECRET}
        try:
...]]></description><category></category></item></channel></rss>