【本地搭建漏洞环境】Centos7搭建RethinkDB环境

准备

环境: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容器内安装

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值