Ubuntu18(WSL2)安装redis

1. 安装并对redis进行配置 更新源并安装redis sudo apt-get update sudo apt-get install redis-server 将redis设置为systemctl sudo vim /etc/redis/redis.conf 找到supervised选项,设置为systemd # If you run Redis from upstart or systemd, Redis can interact with your # supervision tree. Options: # supervised no - no supervision interaction # supervised upstart - signal upstart by putting Redis into SIGSTOP mode # supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET # supervised auto - detect upstart or systemd method based on # UPSTART_JOB or NOTIFY_SOCKET environment variables # Note: these supervision methods only signal "process is ready....

April 4, 2021 · 2 min · 李昌

docker的安装(Ubuntu)

1、docker的安装(Ubuntu) 1.1、 设置存储库 若是已安装旧版本的docker, 请卸载:sudo apt-get remove docker docker-engine docker.io containerd runc 1.1.1、更新apt索引 sudo apt-get update 1.1.2、安装依赖 sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common 1.1.3、添加docker官方的GPG秘钥 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 在进行此步时,出现了sudo: unable to resolve host iZ2ze4512bfzoapfvch6btZ,这是因为机器不能反向解析 打开主机上的 /etc/hosts 添加: 127.0.0.1 【hostname】# 【hostname】用主机名替代 可在/etc/hostname中修改主机名,sudo shutdown -r now重启过后完成主机名修改 验证添加成功: sudo apt-key fingerprint 0EBFCD88 1.1.4、 设置存储库 sudo add-apt-repository "deb [arch=amd64] https://download....

February 25, 2021 · 2 min · 李昌