回到顶部

阅读目录

树莓派安装 git, nginx, redis, supervisor, mariadb

树莓派配置:4B 8G 版本(2020.6.1 淘宝 609 入手),具体功能说明

购买链接:

  1. https://item.taobao.com/item.htm?id=596761703325&src=raspberrypi
  2. https://rsonline.cn/web/p/processor-microcontroller-development-kits/1822098/?src=raspberrypi

树莓派系统:Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux( raspberry [ˈrɑːzbəri])

更新系统:

sudo apt-get update

更新软件:

sudo apt-get upgrade

安装 git:

sudo apt-get install git

安装 nginx:

sudo apt install nginx

安装 redis:

sudo apt-get install redis-server

安装 supervisor:

sudo apt-get install supervisor

如启动 supervisorctl 遇错误:unix:///var/run/supervisor.sock no such file

请查看:https://blog.csdn.net/weixin_41762173/article/details/88901970

安装 mariadb:

sudo apt-get install mariadb-server -y
# 进入数据库
$ sudo mysql
# 给 root 账号设置密码
MariaDB [mysql]> GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'yourpasswd';
# 刷新
MariaDB [mysql]> FLUSH PRIVILEGES;
# 退出
MariaDB [mysql]> exit;
# 配置远程登录
$ sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf     //默认的配置文件位置
#bind-address = 127.0.0.1        //需要进行注释的内容
# 重启 mysql
$ sudo systemctl restart mariadb
# 账号密码登陆
$ sudo mysql -u root -p 

 


^_^
请喝咖啡 ×

文章部分资料可能来源于网络,如有侵权请告知删除。谢谢!

前一篇: window10 python 3.6.8 本地 OCR 模块 muggle_ocr 安装实践
下一篇: 树莓派 + frp + 公网服务器,实现自定义域名内网穿透,暴露内网服务在公网(多 ssh, 多 web)
captcha