1 设置系统最大打开文件句柄数
vim /etc/security/limits.conf
添加以下内容
* soft nofile 65536
* hard nofile 65536
2 上传doris到/opt/upload
3 解压 doris
cd opt/upload
tar -zxvf apache-doris-2.0.10-bin-x64.tar.gz -C /opt/software/
4 重命名 doris
cd /opt/software
mv apache-doris-2.0.10-bin-x64 doris-2.0.4
5 IP 绑
fe.conf 和 be.conf 都需要配置priority_networks=IP/24
cd /opt/software/doris-2.0.10/be/conf
vim be.conf
修改以下内容
priority_networks=192.168.154.131/24
cd /opt/software/doris-2.0.10/fe/conf
vim fe.conf
修改以下内容
priority_networks=192.168.154.131/24
6 创建元数据存放目录doris-meta
cd /opt/software/doris-2.0.10
mkdir doris-meta
7 启动 FE
cd /opt/software/doris-2.0.10/fe
bin/start_fe.sh --daemon
8 dbeaver链接 FE
使用MySQL链接方式链接
填写 服务器地址、端口、用户名、密码
10 FE中添加BE
ALTER SYSTEM ADD BACKEND "192.168.154.131:8050";
11 启动BE
cd /opt/software/doris-2.0.10/be
bin/start_be.sh --daemon
如果出现:Please set vm.max_map_count to be 2000000 under root using 'sysctl -w vm.max_map_count=2000000'.
执行 sysctl -w vm.max_map_count=2000000
如果出现:Please disable swap memory before installation, eg: 'swapoff -a'.
执行 swapoff -a
12 客户端执行SHOW PROC '/backends';
SHOW PROC '/backends';
如果 Alive字段为true。就说明BE启动成功。
13 停止FE
cd /opt/software/doris-2.0.10/fe/bin
./stop_fe.sh
14 停止 BE
cd /opt/software/doris-2.0.10/be/bin
./stop_be.sh