1.IP配置
网卡配置文件在/etc/netplan/下
yaml格式 明显缩进关系 大小写敏感
2.配置apt更新源
清华源Ubuntu软件仓库配置建议地址 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
3.ubuntu和centos软件包管理区别
操作 | Centos | Ubuntu |
软件包后缀 | *.rpm | *.deb |
软件源配置文件 | /etc/yum.conf /etc/yum.repos.d/ | /etc/apt/soures.list |
更新软件包缓存列表 | yum makecache | apt update |
软件仓库安装 | yum install | apt install |
本地软件安装 | rpm -i / yum localinstall | dpkg -i |
删除软件包 | yum remove | apt remove |
4.安装redis
4.1编译安装
4.2配置systemd管理
4.3修改配置文件,避免非授权认证登录,但不兼容aclfile
4.4链接测试
5.报错处理
5.1报错 status=217/USER
5.2 报错 status=1/FAILURE
使用sudo ss -tlunp | grep 6379看到进程在,status确实失败,这里是因为使用后台启动了redis-server &
解决