安装 我的树莓派安装的是manjaro,直接执行如下命令即可
yay -S minio 官方的安装文档开源参考
https://min.io/docs/minio/linux/operations/install-deploy-manage/deploy-minio-single-node-single-drive.html
启用服务 systemctl enable minio
修改配置 主要修改mino的设置文件,文件位置为/etc/minio/minio.conf
# Local export path. MINIO_VOLUMES="/srv/minio/data/" # Server user. MINIO_ROOT_USER=gopher # Server password. MINIO_ROOT_PASSWORD=gopher # Use if you want to run Minio on a custom port. MINIO_OPTS="--console-address :8888" MINIO_SERVER_URL="https://minio.xxx.org" MINIO_BROWSER_REDIRECT_URL="https://minio-console.xxx.org" 修改 MINIO_OPTS 主要是为了自定义Console的端口,而这个参数主要是在service定义中使用,安装软件后自动使用的service(路径为/usr/lib/systemd/system/minio.service)定义如下
[Unit] Description=Minio Documentation=https://docs.minio.io Wants=network-online.target After=network-online.target AssertFileIsExecutable=/usr/bin/minio [Service] # Specifies the maximum file descriptor number that can be opened by this process LimitNOFILE=65536 Type=simple User=minio Group=minio EnvironmentFile=/etc/minio/minio....
安装 系统信息
使用命令安装 yay -S postgresql
初始化及配置 启用数据库服务 sudo systemctl enable --now postgresql
开启数据库服务 sudo systemctl start postgresql
初始化数据 su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
查询配置文件路径
su - postgres [postgres@homeserver ~]$ ls data [postgres@homeserver ~]$ psql psql (14.5) 输入 "help" 来获取帮助信息. postgres=# SHOW config_file; config_file ---------------------------------------- /var/lib/postgres/data/postgresql.conf (1 行记录) 修改监听 修改配置/var/lib/postgres/data/postgresql.conf 文件中的listen_addresses = '*'监听所有地址,重启服务sudo systemctl restart postgresql生效。
允许远程访问 修改配置文件同级目录下的pg_hba.conf,添加一行
# TYPE DATABASE USER CIDR-ADDRESS METHOD host all all 0....
安装 机器安装的是Manjaro,所以本文介绍的是Manjaro的树莓派3安装方式
➜ ~ screenfetch czyt@** OS: Manjaro-ARM 22.01 Kernel: aarch64 Linux 5.15.24-1-MANJARO-ARM-RPI ##### Uptime: 21d 21h 58m ####### Packages: Unknown ##O#O## Shell: zsh 5.8.1 ####### Disk: 11G / 118G (9%) ########### CPU: BCM2835 @ 4x 1.2GHz ############# GPU: ############### RAM: 248MiB / 919MiB ################ ################# ##################### ##################### ################# 使用命令 yay -S mongodb44-bin进行安装,安装完毕后
启用服务 systemctl enable mongodb
检查服务状态 systemctl status mongodb
● mongodb.service - MongoDB Database Server Loaded: loaded (/usr/lib/systemd/system/mongodb.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2022-03-23 13:11:08 CST; 11s ago Docs: https://docs....
本文部分内容基于manjaro,另外如果喜欢苹果界面,可以试下pearos
更换软件源 使用中国的镜像排名
sudo pacman-mirrors -i -c China -m rank //更新镜像排名 sudo pacman -Syy //更新数据源 sudo pacman-mirrors -g //排列数据源 添加archlinuxcn源编辑命令 sudo nano /etc/pacman.conf 添加下面的内容
[archlinuxcn] SigLevel = Optional TrustedOnly #中科大源 Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch #清华源 # Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch # 163源 # Server = http://mirrors.163.com/archlinux-cn/$arch 然后再更新软件数据源
sudo pacman -Syy sudo pacman -S archlinux-keyring archlinuxcn-keyring 如何证书有问题,可以使用下面的命令进行修复,参考官方wiki
sudo pacman-key --init && sudo pacman-key --populate 因为本文的软件使用yay进行安装,故需要使用命令进行安装,命令为 sudo pacman -S yay 设置yay的mirror
yay --aururl "https://aur....