准备
环境:linux
版本:centos7
步骤
sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/centos/7/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF
sudo yum install rethinkdb
systemctl start rethinkdb
sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sudo vi /etc/rethinkdb/instances.d/instance1.conf
内容如下:
### Web options
#
### Port for the http admin console
#
### Default: 8080 + port-offset
#
http-port=8080
#
#设置服务器的名称:
#
#......
#
#### Meta
#
### The name for this server (as will appear in the metadata).
#
### If not specified, it will be randomly chosen from a short list of names.
#
server-name=server1
#
#默认的数据目录是/var/lib/rethinkdb/,但是可以更改它:
#
#.....................
#
#### File path options
#
### Directory to store data and metadata
#
### Command line default: ./rethinkdb_data
#
### Init script default: /var/lib/rethinkdb/<name>/ (where <name> is the name of this file without the extension)
#
directory=/var/lib/rethinkdb/default
#
#设置日志目录:
#
log-file=/var/log/rethinkdb
#
#设置绑定地址,默认为127.0.0.1:
#
bind=0.0.0.0
#
## bind=all # 绑定到所有地址
#
## bind=192.168.10.10 # 绑定到特定的IP地址
改完重启一下服务
如果有开启防火墙
systemctl restart firewalld
sudo firewall-cmd --add-port=8080/tcp --permanent
sudo firewall-cmd --reload
参考链接:https://blog.csdn.net/q1301966496/article/details/113067939
https://rethinkdb.com/docs/install/centos/
https://ywnz.com/linuxysjk/6408.html(主要看这个)
https://www.jianshu.com/p/463fbdbe9f6c docker容器内安装