1、导入背景图至/boot/grub/下 rz filename 2、转化图片为启动菜单所需要的格式和后缀 convert -resize 640x480 -colors 14 backup.jpg back1.xpm 3、系统要求的后缀是.xpm.gz gzip back1.xpm 4 修改文件g ...
分类:
其他好文 时间:
2020-07-27 13:43:10
阅读次数:
81
环境:CentOS 8 主服务器:10.0.0.8 从服务器:10.0.0.28 访问测试主机:10.0.0.6 一、安装DNS服务器软件 bind dnf install bind bind-utils -y ; systemctl enable --now named 二、修改主服务器 bind ...
分类:
其他好文 时间:
2020-07-27 13:38:09
阅读次数:
65
题意: 给定一个序列ai,问序列中其他数中有多少个数是它的约数 思路: 暴力求法会超时。O(n²) 最优解:先储存每个数的个数,遍历x,每个x的倍数加上x的个数 注:最后每个数的答案要-1(减去本身) Code: #pragma GCC optimize(3) #pragma GCC optimiz ...
dnf包管理器克服了yum包管理器的一些瓶颈,提升了包括用户体验,内存占用,依赖分析,运行速度等。CentOS7使用dnf,下载并安装下面包:wgethttp://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf0.6.4-2.sdl7.noarch.rpmwgethttp://springdale.math.ias.
分类:
其他好文 时间:
2020-07-27 09:56:55
阅读次数:
106
linux资源限制 万能设置 /etc/security/limits.conf * soft core unlimited * hard core unlimited * soft nproc 1000000 * hard nproc 1000000 * soft nofile 1000000 * ...
分类:
系统相关 时间:
2020-07-27 09:50:00
阅读次数:
100
一、克隆虚拟机 二、脚本安装 1、yum更新到最新 sudo yum update 2、安装curl yum install curl -y 3、获取get-docker.sh curl -fsSL https://get.docker.com -o get-docker.sh 4、安装 sudo ...
分类:
其他好文 时间:
2020-07-27 09:40:13
阅读次数:
57
Ubuntu 20.04 Install Guest Additions for VirtualBox时有报错: This system is currently not set up to build kernel modules.Please install the gcc make perl ...
分类:
系统相关 时间:
2020-07-26 23:00:43
阅读次数:
94
Docker安装与卸载 Docker安装 要安装 Docker Engine,你需要一个 CentOS 7.x 或以上版本。 卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker ...
分类:
其他好文 时间:
2020-07-26 19:42:26
阅读次数:
77
参考原文链接:https://blog.csdn.net/cool_summer_moon/article/details/78744009 CentOS 8 默认使用的是firewall作为防火墙, 使用systemctl来管理服务和程序,包括了 service 和 chkconfig 。 查看防 ...
分类:
其他好文 时间:
2020-07-26 19:15:24
阅读次数:
88
先开机然后就是下面的样子,选择第一个 然后选Skip 点击OK 点击NEXT下一步 选择安装过程的语言,选简体中文 选择键盘语言选择美式键盘语言 选择安装设备使用基本储存设备就行 这里忽略数据就行 然后为计算机取名字 选择当地的时间,或者安装完成后再改时间 设置一个root密码 选择要使用的类型选择 ...
分类:
其他好文 时间:
2020-07-26 19:13:08
阅读次数:
69