Cannot open snap's installed applications in a virtual sessionIn some cases, applications installed by snap cannot be started inside a virtual session, or even locally. Error is similar to:/user.slice/user-1000489.slice/session-c3.scope is not a snap cgroupThis problem occurs on different Linux distributions, in particular it has been reported to NoMachine for Xubuntu 22.04 and Ubuntu 22.04, and doesn't seem to depend on the desktop environment.A possible workaround, tested on Ubuntu 22.04 and
删除旧版 dockerapt remove -y docker docker-engine docker.io containerd runc更新包apt update安装依赖apt install ca-certificates curl gnupg lsb-release -y添加Docker官方GPG密钥国内:curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add - # 出现错误,则执行 curl -s http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/NAME.gpg --import添加Docker软件源add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu
环境准备redis: https://github.com/redis/redis/archive/refs/tags/7.2.3.zip安装编译依赖apt install -y libsystemd-dev libc6-dev在redis源码目录下执行 make 检查编译环境如果报错缺失 cc 和 pkg-config, 则需要安装对应的依赖apt install pkg-config apt install gcc将redis安装到指定的目录下make PREFIX=/home/van/apps/redis install写入 service 文件[Unit] Description=Redis Server After=network.target [Service] ExecStart=/home/van/apps/redis/bin/redis-server /home/van/apps/redis/conf/redis.conf [Install] WantedBy=multi-user.target