WSL(ubuntu2204)xfce4安装中文环境和fcitx5框架及中文输入法

news2024/9/22 9:59:20

安装中文语言包

sudo apt install language-pack-zh-hans

配置中文显示

首先运行如下命令配置 locale 

$ sudo vi /etc/locale.gen

找到 *zh_CN.UTF-8 UTF-8* 并取消注释,然后保存并退出。

locale.gen...
# zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
# zh_HK BIG5-HKSCS

此处省略200行 ...

 运行命令 sudo locale-gen 进行编译

$ sudo locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8... done
  zh_CN.UTF-8... done
  zh_SG.UTF-8... done
Generation complete.

 设置默认语言是中文

 编辑文件 /etc/default/locale

$ sudo vi /etc/default/locale

 将文件内容更改如下,重启 wsl 生效。

  1 LANG=zh_CN.UTF-8
  2 LANGUAGE="zh_CN:zh:en_US:en"

 安装输入法框架

有中文语言包后就可以正式准备安装输入法了。Linux 中安装其它语言的输入法首先需要安装输入法框架,之后再安装输入法。常用的输入法框架有 ibus 和 fcitx,本文只介绍 fcitx5 框架的安装。

  • Fcitx

Fcitx (Flexible Input Method Framework) ──即小企鹅输入法,它是一个以 GPL 方式发布的输入法平台,可以通过安装引擎支持多种输入法,支持简入繁出,是在 Linux 操作系统中常用的中文输入法。它的优点是,短小精悍、跟程序的兼容性比较好。

  • Fcitx5

Fcitx5 是继 Fcitx 后的新一代输入法框架。

若在系统已经存在一个输入法框架的情况下安装其它框架可能会无法正常工作,需要删除不需要的框架和输入法,可使用如下方式删除:

# 删除软件包保留软件的配置文件
sudo apt remove xxxx
# 删除软件包和软件的配置文件 
sudo apt purge xxxx 
# 清理卸载对象的关联文件
sudo apt autoremove

安装fcitx5框架

使用 Fcitx 5 输入法框架需要安装三部分基本内容:

 1. 安装主程序包

sudo apt install fcitx5

fcitx5包 仅提供基本框架,且仅支持英文。如果要输入其他语言(例如中文或日文),则需要安装x相应的输入法引擎(IME)

2. 输入法引擎

# 安装中文输入法引擎
sudo apt install fcitx5-chinese-addons

fcitx5-chinese-addons 包含与中文相关的 addon,例如拼音、双拼和五笔等。

3. 环境依赖包 

sudo apt install fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5 fcitx5-config-qt

完整fcitx5安装包

运行上面的安装命令后fcitx5框架可能并未安装完整,若想完整安装需要打开语言支持按照提示进行后续安装。如果使用图形桌面xfce4无法打开语言支持或报错可参考内容:WSL(ubuntu2204)使用xfce4桌面打不开语言支持及配置WSL服务自启https://blog.csdn.net/w47_csdn/article/details/129101896

如果图形桌面xfce4中可以正常打开语言支持但并不提示"完整安装",可尝试在终端中以管理员身份执行命令来打开:

$ sudo /usr/bin/gnome-language-selector

若想查找所有的fcitx5相关安装包可运行命令:apt-cache search fcitx5 查看。

$ apt-cache search fcitx5
fcitx5 - 下一代 Fcitx 输入法框架
fcitx5-data - Fcitx Input Method Framework v5 (common data files)
fcitx5-frontend-gtk2 - GTK2 IM Module for fcitx5
fcitx5-frontend-gtk3 - GTK3 IM Module for fcitx5
fcitx5-frontend-gtk4 - GTK4 IM Module for fcitx5
fcitx5-frontend-qt5 - IM module for fcitx5
fcitx5-module-chttrans - Fcitx Input Method Framework v5 (chttrans module)
fcitx5-module-cloudpinyin - Fcitx Input Method Framework v5 (cloudpinyin module)
fcitx5-module-cloudpinyin-dev - Development files for fcitx5 cloudpinyin module
fcitx5-module-emoji - Fcitx Input Method Framework v5 (emoji module)
fcitx5-module-fullwidth - Fcitx Input Method Framework v5 (fullwidth module)
fcitx5-module-lua - Lua support for fcitx5
fcitx5-module-lua-common - Lua support for fcitx5 (common files)
fcitx5-module-lua-dev - Lua support for fcitx5 (development files)
fcitx5-module-pinyinhelper - Fcitx Input Method Framework v5 (pinyinhelper module)
fcitx5-module-pinyinhelper-dev - Development files for fcitx5 pinyinhelper module
fcitx5-module-punctuation - Fcitx Input Method Framework v5 (punctuation module)
fcitx5-module-punctuation-dev - Development files for fcitx5 punctuation module
fcitx5-module-quickphrase - Fcitx Input Method Framework v5 (quickphrase module)
fcitx5-module-wayland - Fcitx Input Method Framework v5 (wayland modules)
fcitx5-module-xorg - Fcitx Input Method Framework v5 (xorg modules)
fcitx5-modules - Fcitx Input Method Framework v5 (core modules)
fcitx5-modules-dev - Fcitx Input Method Framework v5 (input modules dev files)
fcitx5-mozc - Mozc engine for fcitx5 - Client of the Mozc input method
fcitx5-pinyin - Fcitx Input Method Framework v5 (builtin pinyin support)
fcitx5-rime - Rime input method support for fcitx5
fcitx5-table - Fcitx Input Method Framework v5 (builtin table support)
fcitx5-table-amharic - Flexible Input Method Framework v5 - Amharic table
fcitx5-table-arabic - Flexible Input Method Framework v5 - Arabic table
fcitx5-table-cns11643 - Flexible Input Method Framework v5 - Cns11643 table
fcitx5-table-compose - Flexible Input Method Framework v5 - Compose table
fcitx5-table-emoji - Flexible Input Method Framework v5 - Emoji table
fcitx5-table-ipa-x-sampa - Flexible Input Method Framework v5 - IPA-X-SAMPA table
fcitx5-table-latex - Flexible Input Method Framework v5 - LaTeX table
fcitx5-table-malayalam-phonetic - Flexible Input Method Framework v5 - Malayalam phonetic table
fcitx5-table-other - Additional table based input method for Fcitx 5
fcitx5-table-rustrad - Flexible Input Method Framework v5 - Rustrad table
fcitx5-table-tamil-remington - Flexible Input Method Framework v5 - Tamil Remington table
fcitx5-table-thai - Flexible Input Method Framework v5 - Thai table
fcitx5-table-translit - Flexible Input Method Framework v5 - Translit table
fcitx5-table-translit-ua - Flexible Input Method Framework v5 - Ukrainian Translit table
fcitx5-table-viqr - Flexible Input Method Framework v5 - Viqr table
fcitx5-table-yawerty - Flexible Input Method Framework v5 - Yawerty table
gir1.2-fcitxg-1.0 - GObject introspection data for fcitx5
libfcitx5-qt-data - Qt library and IM module for fcitx5 (data files)
libfcitx5-qt-dev - Qt library and IM module for fcitx5 (development files)
libfcitx5-qt1 - Qt library and IM module for fcitx5
libfcitx5config-dev - Fcitx Input Method Framework v5 (config library dev files)
libfcitx5config6 - Fcitx Input Method Framework v5 (config library)
libfcitx5core-dev - Fcitx Input Method Framework v5 (core library dev files)
libfcitx5core7 - Fcitx Input Method Framework v5 (core library)
libfcitx5gclient-dev - GLib-based D-Bus client library for fcitx5 (development files)
libfcitx5gclient2 - GLib-based D-Bus client library for fcitx5 (library)
libfcitx5utils-dev - Fcitx Input Method Framework v5 (utils library dev files)
libfcitx5utils2 - Fcitx Input Method Framework v5 (utils library)
fcitx5-anthy - Fcitx5 wrapper for Anthy IM engine
fcitx5-chewing - Chewing input method support for fcitx5
fcitx5-chinese-addons - Chinese-related addon for fcitx5 (metapackage)
fcitx5-chinese-addons-bin - Chinese-related addon for fcitx5 (binary tools)
fcitx5-chinese-addons-data - Chinese-related addon for fcitx5 (shared data files)
fcitx5-config-qt - configuration tool for Fcitx5 (Qt version)
fcitx5-hangul - Hangul input method wrapper for fcitx5
fcitx5-keyman - Fcitx5 wrapper for Keyman keyboarding platform
fcitx5-kkc - Fcitx5 wrapper for libkkc IM engine
fcitx5-libthai - Thai input method engine for Fcitx5 based on LibThai
fcitx5-m17n - m17n support module for Fcitx5 Input Method Framework
fcitx5-material-color - UI theme for fcitx5 following Material Design
fcitx5-sayura - Fcitx5 wrapper for Sayura IM engine
fcitx5-skk - Japanese SKK input engine for Fcitx5
fcitx5-unikey - Vietnamese Input Method Engine for Fcitx5 using Unikey Engine
kde-config-fcitx5 - KDE configuration module for Fcitx5
libime-bin - Generic Input Method Implementation (tools)
libime-data - Generic Input Method Implementation library (data files)
libime-data-language-model - Generic Input Method Implementation library (language model)
libimecore-dev - Generic Input Method Implementation (core dev files)
libimecore0 - Generic Input Method Implementation (core library)
libimepinyin-dev - Generic Input Method Implementation (pinyin dev files)
libimepinyin0 - Generic Input Method Implementation (pinyin library)
libimetable-dev - Generic Input Method Implementation (table dev files)
libimetable0 - Generic Input Method Implementation (table library)

安装中文词库

对于 Fcitx5 的中文输入法, 目前在仓库里提供了数个词库:

fcitx5-pinyin-zhwiki包:felixonmars 根据中文维基百科创建的适用于拼音输入法的词库

fcitx5-pinyin-sougou:适用于拼音输入法的搜狗词库

rime-pinyin-zhwiki包:适用于 Rime 输入法的词库

fcitx5-pinyin-moegirl-rimeAUR:适用于 Rime 输入法的词库

cedict:从 cedict辞典 导出的词库。

moegirl:outloudvi 根据萌娘百科创建的词库

注意: 手动下载的词典文件直接放到 ~/.local/share/fcitx5/pinyin/dictionaries 路径下即可。词典文件的后缀名应当为 .dict

以维基百科词库为例,在 GitHub 打开 维基百科中文拼音词库 的 Releases 界面,下载最新版的 .dict 文件。按照 README 的指导,将其复制到 ~/.local/share/fcitx5/pinyin/dictionaries/ 文件夹下即可。

# 下载词库文件
wget https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.4/zhwiki-20220416.dict
# 创建存储目录
mkdir ~/.local/share/fcitx5/pinyin/dictionaries/
# 移动词库文件至该目录
mv zhwiki-20220416.dict ~/.local/share/fcitx5/pinyin/dictionaries/

设置为默认输入法

使用 im-config 工具可以配置首选输入法,在任意命令行输入:

$ im-config

根据弹出窗口的提示,将首选输入法设置为 Fcitx 5 即可。 

关于 linux 环境变量

使用 $HOME/.pam_environment 设置环境变量的用户注意啦!由于 CVE-2010-4708, pam 上游在 1.4.0 版本中设置了默认不读取用户的环境变量设置,需要用户自行更换环境变量设置位置或恢复原默认读取行为。--- 依云’s Blog

使用 X11 的桌面环境,通常通过 display manager 来登录,比如 lightdm 和 sddm。这俩都支持 ~/.xprofile。这个文件会在启动过程中被 source,使用的 shell 是由 dm 自己确定的。lightdm 和 sddm 都是用的 /bin/sh(分别位于 /etc/lightdm/Xsession 和 /usr/share/sddm/scripts/Xsession 文件里)。可以看到,除了读取 .xprofile 外,lightdm 也会读取 .profile。sddm 甚至连 bash、zsh、tcsh、fish 的启动配置脚本都给读了。--- 依云’s Blog

Linux 的环境变量怎么设置 - 依云's Bloghttps://blog.lilydjwg.me/2020/7/22/linux-environment-variables.215496.html

linux中环境变量及环境变量配置文件详解 - kelelipenghttps://www.cnblogs.com/kelelipeng/p/13638185.html

配置fcitx5环境变量

为X11桌面会话设置环境变量,即将以下配置项写入某一配置文件中

export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx

这步环境变量配置非常重要,即使前面的安装步骤完美,如果在这步配置有问题亦将无法在xfce4桌面切换出中文输入法。查找了许多文章的fcitx环境变量配置,大体上是下面这几种:

# 在~/.profile文件中配置环境变量
$ vim ~/.profile

# 在~/.pam_environment文件中配置环境变量
$ vim ~/.pam_environment

# 在~/.xprofile文件中配置环境变量
$ vim ~/.xprofile

# 在/etc/environment文件中配置环境变量
$ vim /etc/environment

# 在/etc/profile文件中配置环境变量
$ vim /etc/profile

参考了上面的依云’s Blog基本可以排除 ~/.pam_environment 配置。使用 ~/.profile 或 ~/.xprofile 配置好多次依然不起作用,其余两个是系统级的环境配置没有试过。猜测 fcitx5 的环境变量配置可能与安装桌面时选择的 display manager 有关,本文环境在安装 xfce4 时在 gdm3和 lightdm 中选择了 gdm3,按照依云’s Blog所述这个 ~/.xprofile 是 ssdm 和 lightdm 会读取的配置,而 ~/.profile 只有 lightdm 才会读取,那 gdm3 应该读取哪个配置文件呢?最终测试其余两个系统级配置都会生效。

开机自启动

安装 Fcitx5 后并没有自动添加到开机自启动中,每次开机后需要手动在应用程序中找到并启动,非常繁琐。如果是原生Ubuntu系统,则解决方案非常简单,在 Tweaks(sudo apt install gnome-tweaks)中将 Fcitx5 添加到「开机启动程序」列表中即可。

但是在 WSL Ubuntu 环境下并没有 Tweaks 应用,手动安装 Tweaks 后在桌面可能找不到程序入口,可以在终端中使用命令 sudo /usr/bin/gnome-tweaks 打开。

这里提供一个无需安装 Tweaks 的方法,在 xfce4 桌面中依次打开 所有应用程序->设置->会话和启动  弹出窗口后切换到 应用程序自启动  点击 "+" 添加开机启动程序 /usr/bin/fcitx5 如图所示:

Fcitx5 配置工具

Fcitx5 提供了一个基于 Qt 的强大易用的 GUI 配置工具,可以对输入法功能进行配置。有多种启动该配置工具的方法:

1. 在 所有应用程序->设置 中打开「Fcitx 配置」

2. 在 Fcitx 托盘图标上右键打开「设置」

3. 使用命令运行:fcitx5-configtool

根据个人偏好进行设置即可。需要注意的是「输入法」标签页下,应将「键盘 - 英语」放在首位,拼音(或其他中文输入法)放在后面的位置。

 诊断定位问题

当你遇到任何 Fcitx5 有关的问题,例如 Ctrl+Space 快捷键在有的程序中不能工作,首先应该用 fcitx5-diagnose 命令诊断问题原因。 fcitx5-diagnose 会列出所有 Fcitx5 正常运行所需的前提条件,从输出结果中通常可以找到问题的原因。--- Arch Linux WiKi

 若进行上述配置后依然无法在图形桌面中切换中文输入法,请使用 fcitx5-diagnose 打印日志。

 主要查看环境变量是否配置成功,如果依然提示需要配置环境变量则请尝试更换配置文件。

下面贴上一段环境变量配置报错的日志可供参考: 

# 前端设置:
## Xim:
1.  `${XMODIFIERS}`:

    **XMODIFIERS 没有设置**

    **请使用您发行版提供的工具将环境变量 XMODIFIERS 设为 "@im=fcitx" 或者将 `export XMODIFIERS=@im=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#XMODIFIERS).**
    从环境变量中获取的 Xim 服务名称为 fcitx.

2.  根窗口上的 XIM_SERVERS:

    Xim 服务的名称与环境变量中设置的相同.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE).**

2.  qt5 - `${QT_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE).**

3.  Qt 输入法模块文件:
    找到了未知的 fcitx qt 模块: `/usr/lib/x86_64-linux-gnu/qt5/qml/DBus/Org/Fcitx/Fcitx/libFcitx.so`.
    找到了 Qt5 的输入法模块: `/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    找到了 Qt4 的输入法模块: `/usr/lib/x86_64-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so`.

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 GTK_IM_MODULE 设为 "fcitx" 或者将 `export GTK_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#GTK_IM_MODULE).**

 参考资料

Fcitx5 - Arch Linux 中文维基

Ubuntu22.04安装Fcitx5中文输入法(详细) - 知乎

关于 fcitx5 以及最近的环境变量问题 - WeepingDogel

在Ubuntu中安装中文输入法_Naisu Xu的博客-CSDN

wsl ubuntu安装中文语言和windows字体_acooler15的博客

wsl ubuntu 安装中文语言包并设为默认_无所事事的大T的博客

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/356071.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【C语言刷题】倒置字符串

解题思路与过程📽️解题思路📽️解题过程🔧1.输入🔧2.设计逆序函数🔧3.逆序整个字符串🔧4.逆序每个单词📽️源码📷先来看题👇📽️解题思路 🔴 首先…

【验证码的识别】—— 图形验证码的识别

前言 (结尾有彩蛋欧) 目前,许多网站采取各种各样的措施来反爬虫,其中一个措施便是使用验证码。随着技术的发展,验证码的花样越来越多。验证码最初是几个数字组合的简单的图形验证码,后来加入了英文字母和混…

RK356x U-Boot研究所(命令篇)3.6 fdt命令的用法

平台U-Boot 版本Linux SDK 版本RK356x2017.09v1.2.3文章目录 一、fdt命令的配置二、fdt命令的定义三、fdt命令的用法3.1 fdt list3.2 fdt rm3.3 fdt set一、fdt命令的配置 .config配置文件需要有以下配置: rk3568_defconfig默认已使能。 二、fdt命令的定义 usb命令定义在cm…

169、【动态规划】leetcode ——123. 买卖股票的最佳时机 III:二维数组+一维数组 (C++版本)

题目描述 原题链接:123. 买卖股票的最佳时机 III 解题思路 (1)二维dp数组 动态规划五步曲: (1)dp数组含义: dp[i][0],表示无操作。主要由四个状态来表示四种操作。dp[i][1]&…

博客系统web自动化测试

目录 一、项目简介 二、测试用例 三、测试过程 3.1 环境搭建 3.2 编写代码 3.2.1 博客登陆页面测试 3.2.2 博客列表页面测试 3.2.3 博客详情页面测试 3.2.4 博客编辑页面测试 四、测试评估 一、项目简介 本项目是一个简易的个人博客系统,用户可以在登陆后…

W800开发板|SDK| HLK-W800-KIT-PRO|工具链|本地命令行编译|Windows11|WSL|(5)、海凌科W800开发板命令行编译指南

概况 海凌科W800开发板(HLK-W800-KIT)是海凌科电子面向开发者针对联盛德W800 芯片推出的一款多功能开发板。全功能版本与联盛德W800开发板相比,增加了温湿度传感器、RGB 灯以及音频解码器、功放可以直接在开发版验证功能。联盛德W800的csdk也…

java虚拟机内存分布

java虚拟机内存分布 Java虚拟机在执行java程序的过程中会把它所管理的内存划分为如下若干个不同的数据区域。 1.程序计数器 程序计数器是线程私有的,它占用的空间相对较小,用来记录当前线程字节码执行到哪一步。字节码解释器通过改变这个计数器的值来获…

Portraiture2023最新版人像图像后期处理软件

2023全新发布Portraiture 4是专注于图像后期处理软件研发的 Imagenomic, LLC产品之一,在摄影爱好者中有点影响力。Portraiture可以将繁琐复杂的人像磨皮操作极致简化,不论是普通爱好者或专业后期处理人员,均能一键完成。凭借优秀的AI算法和多…

uniapp 悬浮窗(应用内、无需授权) Ba-FloatWindow2

简介(下载地址) Ba-FloatWindow2 是一款应用内并且无需授权的悬浮窗插件。支持多种拖动;自定义位置、大小;支持动态修改。 支持自动定义起始位置支持自定义悬浮窗大小支持贴边显示支持多种拖动方效果:不可拖动、任意…

python--matplotlib(1)

前言 Matplotlib画图工具的官网地址是 http://matplotlib.org/ Python环境下实现Matlab制图功能的第三方库,需要numpy库的支持,支持用户方便设计出二维、三维数据的图形显示。 正文 1.arange函数 arange函数需要三个参数,分别为起始点、终止…

MyBatisPlus ---- 多数据源

MyBatisPlus ---- 多数据源1. 创建数据库及表2. 引入依赖3. 配置多数据源4. 创建用户service5. 创建商品service6. 测试适用于多种场景:纯粹多库、读写分离、一主多从、混合模式等 目前我们就来模拟一个纯粹多库的一个场景,其他场景类似 场景说明&#x…

一文了解Hotspot虚拟机下JAVA对象从创建到回收的生命周期

Java虚拟机是Java的核心和基础,他是Java编译器和操作系统平台之间处理器,能实现跨平台运行Java程序。本文主要讲解的是虚拟机如何管理对象,即Java对象在JVM虚拟机中被创建到回收的流程 Java对象从创建到回收的生命周期对象创建流程1.类加载检…

MyBatis 的一级、二级缓存机制

目录标题缓存什么是缓存为什么使用缓存什么样的数据能使用缓存,什么样的数据不能使用适用于缓存不适用于缓存MyBatis 一级缓存、二级缓存关系1. 一级缓存1.1 什么是一级缓存mybatis1.2 一级缓存配置1.3 什么情况下会命中一级缓存mybatis清除一级缓存的几种方法1.4 内…

Delphi 10.4.2使用传统代码提示方案(auto complete)(转)

Delphi 10.4重点是实现了LSP,但现在最新的10.4.2还是不成熟,无法满足日常需要,不过没关系,可以设置为原有的方案,如下图:具体操作:Tools->Options->Editor->language->Code Insight…

迷宫问题图解 : 基于骨架提取、四邻域

目录 1. 迷宫的连通域 2. How to remove branch ? 3. 基于4邻域的 remove 分支 3.1 找到分支的端点 3.2 4邻域的 remove 分支 3.3 循环移除分支 3.4 code 4. 迷宫路线 4.1 预处理 4.2 提取骨架 4.3 分支的端点 4.4 去除分支的端点 4.5 循环去除分支 4…

Java-合并两个链表

每日一题 Java-合并两个链表 给你两个链表 list1 和 list2 ,它们包含的元素分别为 n 个和 m 个。 请你将 list1 中下标从 a 到 b 的全部节点都删除,并将list2 接在被删除节点的位置。 下图中蓝色边和节点展示了操作后的结果: 请你返回结果…

linux下redis安装 及常用命令

安装及常用命令 redis的yum方式安装 先查看是否已经安装redis执行命令 rpm -qa | grep redis如果存在,将存在的卸载:(-y 代表自动选择) yum remove xxx -y在线安装redis yum install redis安装本地已经下载好的redis安装包 yum localinstall redis6.2…

基于Spring、Spring MVC、MyBatis的招聘管理系统

文章目录项目介绍主要功能截图:首页账户管理招聘建议部分代码展示设计总结项目获取方式🍅 作者主页:Java韩立 🍅 简介:Java领域优质创作者🏆、 简历模板、学习资料、面试题库【关注我,都给你】 …

流程引擎之Camunda简介

背景Camunda 是支持 BPMN(工作流和流程自动化)、CMMN(案例管理) 和 DMN(业务决策管理) java 框架。Camunda 基于Activiti5 保留了 PVM,其开发团队也是从 activiti 中分裂出来的。Camunda 来自拉…

KubeSphere实战

文章目录一、KubeSphere平台安装1、Kubernetes上安装KubeSphere1.1 安装docker1.2 安装Kubernetes1.3 前置环境之nfs存储1.4 前置环境之metrics-server1.5 安装KubeSphere2、Linux单节点部署KubeSphere3、Linux多节点部署KubeSphere(推荐)二、KubeSphere实战1、多租户实战2、中…