pip -V 回车(大写V):python包库安装路径
python -m site: python查找路径
1、redis
ubuntu安装redis
System has not been booted with systemd as init system (PID 1). Can't operate;该问题是systemctl start redis报错,可以往下走,修改redis配置,让redis后台运行即可;解决‘System has not been booted with systemd as init system (PID 1). Can‘t operate.‘_CrystalheartLi的博客-CSDN博客
netstat -tap | grep redis 查看redis服务是否正常listen;
ps -aux | grep redis 进程查看
netstat -lanp | grep 6379 端口监听
redis配置,修改redis.conf中的对应字段
1、ip 允许远程连接就注释bind 127.0.0.1字段,或者设置0.0.0.0;
一文彻底明白127.0.0.1和0.0.0.0地址的区别是什么? - 知乎 (zhihu.com)
2、密码 requirepass后面填写密码;
3、后台运行 daemonize字段设置成yes;
4、port 默认6379;
python安装redis
2、mysql
ubuntu和python安装即可;
同上systemctl用不了,手动启动服务;/etc/init.d/mysql restart
配置文件mysqld.conf在/etc/mysql/mysql.conf.d/mysqld.cnf
参考:
文章来源:https://www.toymoban.com/news/detail-645831.html
Ubuntu 20.04 安装 MySQL 8.0 并且远程连接数据库(包括后续遇到的新坑)_synchronizing state of mysql.service with sysv ser_Nymph2333的博客-CSDN博客文章来源地址https://www.toymoban.com/news/detail-645831.html
到了这里,关于ubuntu中redis+mysql安装使用的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!