192.168.146.20上安装元数据服务:foundationdb
- 安装fdb server和fdb client
[root@rhel73-1 GCDW]# ll
总用量 23400
-rw-r--r-- 1 root root 12072668 7月 31 15:47 foundationdb-clients-6.2.27-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 11884028 7月 31 15:47 foundationdb-server-6.2.27-1.el7.x86_64.rpm
[root@rhel73-1 GCDW]# rpm -ivh foundationdb-clients-6.2.27-1.el7.x86_64.rpm foundationdb-server-6.2.27-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:foundationdb-clients-6.2.27-1.el7################################# [ 50%]
2:foundationdb-server-6.2.27-1.el7 ################################# [100%]
- 安装完成后查看相关文件及权限
[root@rhel73-1 foundationdb]# cd /etc
[root@rhel73-1 etc]# ll | grep foundationdb
drwxrwxr-x 2 foundationdb foundationdb 50 8月 1 09:47 foundationdb
[root@rhel73-1 etc]# cd /etc/foundationdb/
[root@rhel73-1 foundationdb]# ll
总用量 8
-rw-rw-r-- 1 foundationdb foundationdb 33 8月 1 09:47 fdb.cluster
-rw-r--r-- 1 root root 1222 10月 13 2020 foundationdb.conf
[root@rhel73-1 foundationdb]# cat /etc/foundationdb/fdb.cluster
pNMOSzm4:uWA6IUaB@127.0.0.1:4500
注:pNMOSzm4:uWA6IUaB@127.0.0.1:4500为安装后自动生成的外部访问路径,外部访问时需将回环地址改为外部可访问的实际IP。
- 配置外部访问路径,外部访问路径保存在fdb.cluster文件中(pNMOSzm4:uWA6IUaB@192.168.146.20:4500)
[root@rhel73-1 foundationdb]# cat fdb.cluster
pNMOSzm4:uWA6IUaB@127.0.0.1:4500
[root@rhel73-1 foundationdb]# cd /usr/lib/foundationdb/
[root@rhel73-1 foundationdb]# ls
backup_agent fdbmonitor make_public.py
[root@rhel73-1 foundationdb]# ./make_public.py -a 192.168.146.20
Redirecting to /bin/systemctl restart foundationdb.service
/etc/foundationdb/fdb.cluster is now using address 192.168.146.20
[root@rhel73-1 foundationdb]# cat /etc/foundationdb/fdb.cluster
pNMOSzm4:uWA6IUaB@192.168.146.20:4500
- 查看foundationdb服务状态,服务均正常
[root@rhel73-1 etc]# service foundationdb status
Redirecting to /bin/systemctl status foundationdb.service
foundationdb.service - FoundationDB Key-Value Store
Loaded: loaded (/usr/lib/systemd/system/foundationdb.service; enabled; vendor preset: disabled)
Active: active (running) since 一 2022-08-01 09:47:15 CST; 8min ago
Process: 27577 ExecStart=/usr/lib/foundationdb/fdbmonitor --conffile /etc/foundationdb/foundationdb.conf --lockfile /var/run/fdbmonitor.pid --daemonize (code=exited, status=0/SUCCESS)
Main PID: 27578 (fdbmonitor)
Memory: 23.0M
CGroup: /system.slice/foundationdb.service
├─27578 /usr/lib/foundationdb/fdbmonitor --conffile /etc/foundationdb/foundationdb.conf --lockfile /var/run/fdbmonitor.pid --daemonize
├─27579 /usr/lib/foundationdb/backup_agent/backup_agent --cluster_file /etc/foundationdb/fdb.cluster --logdir /var/log/foundationdb
└─27580 /usr/sbin/fdbserver --cluster_file /etc/foundationdb/fdb.cluster --datadir /var/lib/foundationdb/data/4500 --listen_address public --logdir /var/log/foundationdb --public_address auto:...
8月 01 09:47:15 rhel73-1 systemd[1]: Starting FoundationDB Key-Value Store...
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbmonitor": Watching conf file /etc/foundationdb/foundationdb.conf
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbmonitor": Watching conf dir /etc/foundationdb/ (2)
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbmonitor": Loading configuration /etc/foundationdb/foundationdb.conf
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbmonitor": Starting backup_agent.1
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbmonitor": Starting fdbserver.4500
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="backup_agent.1": Launching /usr/lib/foundationdb/backup_agent/backup_agent (27579) for backup_agent.1
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbserver.4500": Launching /usr/sbin/fdbserver (27580) for fdbserver.4500
8月 01 09:47:15 rhel73-1 systemd[1]: Started FoundationDB Key-Value Store.
8月 01 09:47:15 rhel73-1 fdbmonitor[27578]: LogGroup="default" Process="fdbserver.4500": FDBD joined cluster.