分类 Linux 下的文章

由于Linux原始的防火墙工具iptables过于繁琐,所以 Ubuntu 默认提供了一个基于iptable之上的防火墙工具ufw

nohup 英文全称 no hang up(不挂起),用于在系统后台不挂断地运行命令,退出终端不会影响程序的运行。

安装

sudo apt install lsb-release curl -y

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

sudo apt-get update
sudo apt-get install redis

Debian系统的软件源在/etc/apt/sources.list文件中,第三方添加的源也可能在/etc/apt/sources.list.d目录中