摘要: PyQt5 版本5.15.4 使用 setPalette不生效,源码如下: def set_background(self, image): self.resize(self.desk_width, self.desk_height) desktop_bg = QImage(image) # des 阅读全文
posted @ 2021-05-08 11:01 海里木有鱼 阅读(671) 评论(0) 推荐(0) 编辑
摘要: sqoop export --connect jdbc:mysql://localhost:3306/xiandian --username root --password 000000 --export-dir /1daoyun/data/hive/phy_course_xd.txt --tabl 阅读全文
posted @ 2021-04-18 15:39 海里木有鱼 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 实现说明:两台服务器分别为nfs1,nfs2 nfs1 192.168.104.144 nfs2 192.168.104.145 vip 192.168.104.200 使用nfs+rsync+inotify+keepalived等工具 关闭防火墙和selinux,保证主机名能解析,设置好ssh互信 阅读全文
posted @ 2021-04-18 15:19 海里木有鱼 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 系统环境 VMware workstation 系统 CentOS-7-x86_64-DVD-1810 以下需注意:本文由多篇博客组成,作者为了防止忘记而记录,途中有些有误地方,比如10.10.10.0/24网段的,应该改成10.1.1.0/24网段,为了节省时间,部分图取决于https://www 阅读全文
posted @ 2021-04-18 15:16 海里木有鱼 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 控制节点: [default] vnc_enabled=false [spice]html5proxy_host=192.168.3.91 html5proxy_port=6082 keymap=en-us 停止novncproxy并取消自启动 systemctl disable --now ope 阅读全文
posted @ 2021-04-18 15:11 海里木有鱼 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 方法一: 安装yumdownloader工具 yum install yum-utils -y # 一般已经安装,只要有yumdownloader命令即可 使用downloader yumdownloader squid --resolve --destdir=/root/squid/ # --re 阅读全文
posted @ 2021-04-06 14:10 海里木有鱼 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 注意:连接docker守护进程 需要使用root权限,为了简洁,以下docker命令省略了sudo 使用docker打印Hello World halen@halen-lai:~$ docker run ubuntu:15.10 /bin/echo "Hello World" docker + ru 阅读全文
posted @ 2021-02-20 11:37 海里木有鱼 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 切换root用户 sudo su # 查看linux系统所在分区, 我的系统是/dev/sda1 fdisk -l # 进行挂在操作, 使用chroot mount /dev/sda1 /mnt mount --bind /dev /mnt/dev mount --bind /dev/pts /mn 阅读全文
posted @ 2021-01-15 13:26 海里木有鱼 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 例子参考博客文章: LINUX下 Udev详解 首先在新建此文件在/etc/udev/rules.d/目录下新建010.udev.rules,填入以下内容: ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mkdir -p /mnt/usb%n" 阅读全文
posted @ 2021-01-13 16:21 海里木有鱼 阅读(387) 评论(0) 推荐(0) 编辑
摘要: setuptools 的setup参数 Standard commands: build build everything needed to install build_py "build" pure Python modules (copy to build directory) build_e 阅读全文
posted @ 2021-01-12 15:38 海里木有鱼 阅读(1439) 评论(0) 推荐(0) 编辑