""" 在 CentOS 7上部署RethinkDB 输入 sudo tee /etc/yum.repos.d/rethinkdb.repo<<EOF [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 -y install rethinkdb 等待安装完成 做配置文件 sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf sudo vi /etc/rethinkdb/instances.d/instance1.conf 配置文件详情: 例子: 启用 http 管理控制台并监听任何地址。 ### Network options bind=all ### 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 设置绑定地址 – 默认为全部 bind=all # bind=all # Bind to all addresses # bind=192.168.10.10 # Bind to specific ip address 创建数据和日志目录/文件: sudo mkdir /var/lib/rethinkdb sudo touch /var/log/rethinkdb 给权限 sudo chown -R rethinkdb:rethinkdb /var/log/rethinkdb /var/lib/rethinkdb sudo chmod -R 775 /var/log/rethinkdb /var/lib/rethinkdb 启动 rethinkdb 服务 sudo systemctl enable rethinkdb sudo systemctl start rethinkdb 成功: ● rethinkdb.service - LSB: This starts a set of rethinkdb server instances. Loaded: loaded (/etc/rc.d/init.d/rethinkdb; bad; vendor preset: disabled) Active: active (running) since Fri 2023-11-24 16:06:05 CST; 5s ago Docs: man:systemd-sysv-generator(8) Process: 28469 ExecStart=/etc/rc.d/init.d/rethinkdb start (code=exited, status=0/SUCCESS) 然今查看机器ip,输入 ip address 在浏览器中输入 ip:8080 (机器ip+端口) e:http://192.168.60.187:4000/devices 更多详情参考 官网:https://rethinkdb.com/docs/install/centos/ 文章:https://cn.linux-console.net/?p=21244#google_vignette --------------------------------------- docker 部署atxserver2-android-provider 如果你还没有安装docker,并且你用的是Linux,有一个很简单的命令就可以一键安装上去。 curl -fsSL https://get.docker.com | sh 检查 Docker 是否正在运行 systemctl status docker 如果 Docker 未运行,你可以使用以下命令启动 Docker 服务 sudo systemctl start docker 使用dockerhub上的image(当前有Linux/amd64和Linux/arm的镜像) SERVER_URL="http://192.168.60.187:4000" # 这个修改成自己的atxserver2地址 IMAGE="codeskyblue/atxserver2-android-provider" docker pull $IMAGE docker run --rm --privileged -v /dev/bus/usb:/dev/bus/usb --net host \ ${IMAGE} python main.py --server ${SERVER_URL} 这个总结就是,先linux安装 rethinkdb和atxserver2-master , 然后启动 atxserver2-master 其他电脑安装atxserver2-android-provider,启动后会把手机信息推到 atxserver2-master 的启动地址:http://192.168.60.187:4000 发现远程调用手机很慢,应该是和网络有关,我自己的手机5 G 调起还行 """
RethinkDB+atxserver2部署记录
最新推荐文章于 2024-05-14 09:45:31 发布