$# Extra Packages for Enterprise Linux - EPEL
1. fedora社区打造高质量软件仓库(有部分EHEL收费的软件包)2. 免费# 使用官方epel源[root@HCIE yum.repos.d]# yum list | grep -i "epel"
epel-release.noarch 7-11 extras
[root@HCIE yum.repos.d]# yum -y install epel-release.noarch [root@HCIE yum.repos.d]# ls
bak CentOS-Base.repo epel.repo epel-testing.repo
[root@HCIE yum.repos.d]# [root@HCIE yum.repos.d]# yum clean all && yum makecache[root@HCIE yum.repos.d]# yum repolist all[root@HCIE yum.repos.d]# yum repolist enabled# 使用阿里云第三方epel源[root@HCIE yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo[root@HCIE yum.repos.d]# yum clean all && yum makecache
19.12 yum本地ISO仓库管理
$#1. 本地无网络场景下,挂载ISO镜像
[root@localhost yum.repos.d]# mkdir bak2[root@localhost yum.repos.d]# mv *.repo bak2[root@localhost yum.repos.d]# [root@localhost yum.repos.d]# mount /dev/sr0 /mnt/ # 临时挂载ISO到本地,重启就没了[root@localhost yum.repos.d]# vim local_mnt.repo[local_mnt]baseurl=file:///mnt
enabled=1gpgcheck=0# 不联网,不需要校验[root@localhost yum.repos.d]# file:// # 本地文件系统
file:///mnt # 本地文件系统跟路径下的mnt路径[root@localhost yum.repos.d]# yum clean all && yum makecache [root@localhost yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror, langpacks
Repository 'local_mnt' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
repo id repo name status
local_mnt local_mnt enabled: 3,894
repolist: 3,894[root@localhost yum.repos.d]#
19.13 软件包组管理
$#1. minimal安装,想装GUIminimal: 200多个包,连vim都没有
[root@localhost yum.repos.d]# mkdir bak2[root@localhost yum.repos.d]# mv *.repo bak2[root@localhost yum.repos.d]# mount /dev/sr0 /mnt/ # 临时挂载ISO到本地,重启就没了[root@localhost yum.repos.d]# vim local_mnt.repo[local_mnt]baseurl=file:///mnt
enabled=1gpgcheck=0# 不联网,不需要校验[root@localhost yum.repos.d]# df -Th[root@localhost yum.repos.d]# [root@localhost yum.repos.d]# [root@localhost yum.repos.d]# rpm -qa | wc -l299[root@localhost yum.repos.d]#[root@localhost yum.repos.d]# yum group list
Loaded plugins: fastestmirror, langpacks
Repository 'local_mnt' is missing name in configuration, using id
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Available Environment Groups:Minimal InstallCompute NodeInfrastructure ServerFile and Print ServerBasic Web ServerVirtualization HostServer with GUIGNOME DesktopKDE Plasma WorkspacesDevelopment and Creative Workstation
Available Groups:Compatibility LibrariesConsole Internet ToolsDevelopment ToolsGraphical Administration ToolsLegacy UNIX CompatibilityScientific SupportSecurity ToolsSmart Card SupportSystem Administration ToolsSystem Management
Done
[root@localhost yum.repos.d]# [root@localhost yum.repos.d]# yum group install -y "Server with GUI"[root@localhost yum.repos.d]# rpm -qa | wc -l1369[root@localhost yum.repos.d]# # 设置图形化方法启动[root@localhost yum.repos.d]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@localhost yum.repos.d]# reboot
linux 基本指令 clear 清屏 Alt Enter 全屏/退出全屏 pwd 显示当前用户所处路径 cd 改变目录 cd /root/mikecd … 返回上级目录cd - 返回最近所处的路径cd ~ 直接返回当前用户自己的家目 roor 中:/root普通用户中:/home/mike mkdir 创建一个文件夹(d) …
简介
Function Score查询在Elasticsearch中是一个强大的工具,它允许我们根据一个或多个函数来调整查询结果的相关性得分。这使得我们可以基于某些条件对搜索结果进行更精细的控制。本文将介绍如何在Java应用程序中使用Elasticsearch的RestHighLevelClient执行Funct…