# filecash-deploy **Repository Path**: Yang007GG_com/filecash-deploy ## Basic Information - **Project Name**: filecash-deploy - **Description**: 一键部署filecash - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2020-11-18 - **Last Updated**: 2022-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FileCash 一键部署脚本 ## 1.单机部署(主要用于单机测试环境) 运行以下命令一键部署 Filecash,支持 Ubuntu 18.04/20.04 ,请使用root用户运行 ~~~bash wget https://gitee.com/bill080307/filecash-deploy/raw/master/install.sh bash install.sh ~~~ 注意:脚本中的环境变量。 NVME固态硬盘缓存挂载路径: /ssd/ 机械硬盘以及共享储存挂载路径: /hdd/ swap 120G 占用系统盘。 参数文件 46G,占用 /ssd/ ## 2.集群安装 (主要用于生产环境) ### 2.1 集群架构 ![lotus](img/lotus.jpg) ### 2.2 准备工作 ~~~bash sudo su - # 切换root账号 git clone https://gitee.com/bill080307/filecash-deploy.git cd filecash-deploy/cluster/ vim hosts # 添加每一个主机的 hostname 和对应的ip 会替换所有主机的hosts vim ansble-host # ansble 主机分组文件, 按实际主机数量分组 apt update apt install -y ansible cp -a hosts /etc/hosts cp -a ansble-host /etc/ansible/hosts # 制作无密登陆各个主机 ssh-keygen for host in $(cat hosts | grep imba | awk '{print $2}') do ssh-copy-id ${host} done # 此时已经可以通过ansble控制所有机器 ansible all -m shell -a 'hostname' # 设置主机名、换成阿里源、替换所有主机hosts ansible-playbook name.yml ~~~ ### 2.3 参数设置 // TODO ### 2.4 环境安装 2.4.1 存储集群安装 ~~~bash ansible-playbook ceph-install.yml ~~~ ### 2.5 一键安装 // TODO ### 2.6 监控安装 // TODO ### 2.7 运维工具 // TODO # $捐$赠$ ![donation](img/f2c1a245a3accb3ca8729c457d417b11-675x1024.jpg)