把自己的服务器添加到presearch节点

Presearch is a scam. Before, judging by the price of the token you should have been able to get between $150-$200 after 12-13 months of regular searches.

"If you use this service for the next 11 years you will have earned $30!"

Presearch大约需要400多MB内存。1核1G内存的VPS还是不要跑presearch-node


 is a decentralized search engine that rewards users with cryptocurrency for running search nodes. Here's a step-by-step guide to adding your computer as a Presearch node:

### 1. **Create a Presearch Account**
   - Visit the [Presearch website](https://www.presearch.io).
   - Sign up for an account if you don't already have one.

### 2. **Set Up a VPS or Dedicated Server**
   - Presearch nodes typically run on Linux-based servers. You can use a Virtual Private Server (VPS) or a dedicated server.
   - Some popular VPS providers include DigitalOcean, AWS, Google Cloud, and Vultr.
   - Choose a VPS plan that suits your needs (minimum requirements are usually 1 CPU, 1 GB RAM, and 10 GB disk space).

### 3. **Install Docker**
   - Presearch nodes run within a Docker container. Install Docker on your server:
     ```bash
     sudo apt update
     sudo apt install apt-transport-https ca-certificates curl software-properties-common
     curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
     sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
     sudo apt update
     sudo apt install docker-ce
     ```

### 4. **Pull the Presearch Node Docker Image**
   - Use the following command to pull the latest Presearch node Docker image:
     ```bash
     sudo docker pull presearch/node
     ```

/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

sudo service docker start

### 5. **Run the Presearch Node**
   - Start the Presearch node container with your registration code. Replace `YOUR-REGISTRATION-CODE` with the code you get from your Presearch account:
     ```bash
     sudo docker run -dt --name presearch-node -e REGISTRATION_CODE=YOUR-REGISTRATION-CODE -p 4000:4000 presearch/node
     ```

Linux/Mac/PREberry/Windows Powershell

#!/usr/bin/bashYOUR_REGISTRATION_CODE_HERE=自己的注册码
HOSTPORT=4000
CONTAINERPORT=4000docker stop presearch-node
docker rm presearch-node
docker stop presearch-auto-updater
docker rm presearch-auto-updater
docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node
docker pull presearch/node
# docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node
docker run -dt --name presearch-node --restart=unless-stopped -p 0.0.0.0:$HOSTPORT:$CONTAINERPORT -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node
docker logs -f presearch-node

 Windows cmd

docker stop presearch-node & docker rm presearch-node & docker stop presearch-auto-updater & docker rm presearch-auto-updater & docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node & docker pull presearch/node & docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node & docker logs -f presearch-node

### 6. **Verify Node Status**
   - After a few minutes, check the status of your node on your Presearch dashboard to ensure it’s running properly.
   - You can access your node’s web interface by navigating to `http://YOUR-SERVER-IP:4000` in your web browser.

### 7. **Maintain and Monitor Your Node**
   - Regularly check the node's status and logs:
     ```bash
     sudo docker logs presearch-node
     ```
   - Ensure your server is running smoothly and has enough resources.

### Additional Tips
- **Security**: Secure your VPS with a strong password and consider setting up a firewall.
- **Backups**: Regularly back up your node’s data.
- **Updates**: Keep Docker and your node software up to date to benefit from the latest features and security fixes.

Following these steps will help you successfully add your computer as a Presearch node and start earning rewards.

node stats

presearch dashboard

node status api

If you prefer not to use Docker due to its resource consumption, you can still run a Presearch node directly on your server. Here’s how you can set it up without Docker:

### 1. **Create a Presearch Account**
   - Visit the [Presearch website](https://www.presearch.io).
   - Sign up for an account if you don't already have one.

### 2. **Set Up a VPS or Dedicated Server**
   - Presearch nodes typically run on Linux-based servers. You can use a Virtual Private Server (VPS) or a dedicated server.
   - Some popular VPS providers include DigitalOcean, AWS, Google Cloud, and Vultr.
   - Choose a VPS plan that suits your needs (minimum requirements are usually 1 CPU, 1 GB RAM, and 10 GB disk space).

### 3. **Install Required Dependencies**
   - Install necessary dependencies for running the Presearch node:
     ```bash
     sudo apt update
     sudo apt install -y curl git nodejs npm
     ```

### 4. **Clone the Presearch Node Repository**
   - Clone the Presearch node repository from GitHub:

HTTPS_PROXY
127.0.0.1:1080


     ```bash
     # git clone https://github.com/PresearchOfficial/presearch-node.git

git clone https://github.com/PresearchOfficial/presearch-packages


     cd presearch-packages
     ```

### 5. **Install Node.js Dependencies**
   - Install the Node.js dependencies required for the Presearch node:
     ```bash
     npm install
     ```

### 6. **Configure Your Node**
   - Create a `.env` file to store your registration code:
     ```bash
     echo "REGISTRATION_CODE=YOUR-REGISTRATION-CODE" > .env
     ```
   - Replace `YOUR-REGISTRATION-CODE` with the code you get from your Presearch account.

### 7. **Run the Presearch Node**
   - Start the Presearch node:
     ```bash

cd server
     npm start
     ```

这个代码不对,还是参考上面的docker 

$ cat ./firewall.sh 

#!/usr/bin/env bashif [ "$#" -ne 1 ]; thenecho "Usage: $0 PORT"exit 22  # Invalid Arguments
fiPORT=$1
default_zone=$(firewall-cmd --get-default-zone)
firewall-cmd --permanent --zone=${default_zone} --add-port=${PORT}/tcp
firewall-cmd --permanent --zone=${default_zone} --add-port=${PORT}/udp
firewall-cmd --reloadfirewall-cmd --state
firewall-cmd --list-all --zone=${default_zone}

sudo ./firewall.sh 4000
 

### 8. **Verify Node Status**
   - After a few minutes, check the status of your node on your Presearch dashboard to ensure it’s running properly.

### 9. **Set Up as a Service (Optional)**
   - To ensure your node starts automatically and runs in the background, you can set it up as a systemd service:
     ```bash
     sudo nano /etc/systemd/system/presearch-node.service
     ```
   - Add the following content to the file:
     ```ini
     [Unit]
     Description=Presearch Node
     After=network.target

     [Service]
     User=root
     WorkingDirectory=/path/to/presearch-node
     ExecStart=/usr/bin/npm start
     Restart=always

     [Install]
     WantedBy=multi-user.target
     ```
   - Replace `/path/to/presearch-node` with the actual path to the cloned repository.
   - Enable and start the service:
     ```bash
     sudo systemctl enable presearch-node
     sudo systemctl start presearch-node
     ```

### 10. **Maintain and Monitor Your Node**
   - Regularly check the status and logs of your node:
     ```bash
     sudo systemctl status presearch-node
     sudo journalctl -u presearch-node -f
     ```
   - Ensure your server is running smoothly and has enough resources.

Following these steps will help you run a Presearch node without using Docker, which should be lighter on system resources.

Run a Node

Do you support decentralization and an open internet that isn’t dominated by a handful of Big Tech companies?

Now you can be part of the solution by operating a Presearch Node and helping to power the Presearch decentralized search engine.

Presearch Nodes are used to process user search requests, and node operators earn Presearch PRE tokens for joining and supporting the network.

It’s easy to get started!

  • Install Docker on your computer or virtual server, or use a turn-key solution like ThreeFold.io, that already has Docker installed
  • Register your node and get a registration code at https://nodes.presearch.com/dashboard
  • Run the node start commands

Server requirements

Presearch nodes with fast internet and low latency connection to the Presearch Gateway are currently prioritized. You do not need much disk space, much memory, or much CPU current to run a node, and running a more powerful server does not currently increase node rewards. We recommend running many lightweight nodes to optimize your reward earnings relative to your server costs.

Node operator rewards

Rewards are paid to all node operators who stake at least 4,000 PRE to their node.

Each of your staked nodes will qualify for the base reward paid to incentivize participation in the network.

Those who stake more than 4,000 PRE to their node are eligible to earn additional rewards.

For complete information on how staking works, please visit https://nodes.presearch.com/rewards

Risks & Cautions

Running a Presearch node is likely not a concern for most node operators, but there are some things we think you should be aware of:

  • If you are running a node locally (and not on an outside server), queries routed through your node to external sources (other search engines, databases & APIs) could be associated with your IP address. If you are trying to minimize your personal footprint with Google and other big tech companies for instance, using Presearch as a searcher is what you want, but running a node is probably not.
  • This is particularly true if you are in a repressive country, such as Iran, North Korea or China, where the powers that be can use any excuse to attack you.
  • The IP address of your node is used to identify your node within the system and will be logged. Again, if you are trying to minimize your personal external footprint, you would be best to either run a node on an outside server you are comfortable exposing, or do not run a node at all.
  • Depending on the country in which you are located, node rewards may need to be declared as income for tax purposes. That is up to you to track and report, and we will not be submitting or providing any documentation aside from the logs of your rewards.
  • This software is currently not open source and you are relying on our assurances that nothing malicious is happening underneath the hood. We promise that this is true, but the ability to verify it for yourself would currently be limited to packet sniffers and any other means that you have available to you. It is our intention to open source this software in the future, but we’re not there yet.
  • This is beta software, and it is possible that there are bugs that we are not yet aware of. We push updates frequently to resolve anything we discover, but as we cannot control which versions of the node software are run on your machine, we can’t ensure that you will always have the latest version.
  • Overall, it’s best to assume that any risk on your part is yours alone, and while we will do our best to ensure that only good things come from running a node, there are no guarantees that this will be the case, only best efforts.

Thanks for your interest in running a node and for your support!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/337329.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

11.1 排序算法

目录 11.1 排序算法 11.1.1 评价维度 11.1.2 理想排序算法 11.1 排序算法 排序算法(sorting algorithm)用于对一组数据按照特定顺序进行排列。排序算法有着广泛的应用,因为有序数据通常能够被更高效地查找、分析和处理。 如图 1…

STM32—按键控制LED(定时器)

目录 1 、 电路构成及原理图 2 、编写实现代码 main.c exit.c 3、代码讲解 4、烧录到开发板调试、验证代码 5、检验效果 此笔记基于朗峰 STM32F103 系列全集成开发板的记录。 1 、 电路构成及原理图 EXTI(External interrupt/event controller&#xff…

Ubuntu22.04之扩展并挂载4T硬盘(二百三十三)

简介: CSDN博客专家,专注Android/Linux系统,分享多mic语音方案、音视频、编解码等技术,与大家一起成长! 优质专栏:Audio工程师进阶系列【原创干货持续更新中……】🚀 优质专栏:多媒…

C 基础 - 预处理命令和基本语法详解

#include <stdio.h> //预处理指令int main() //函数 {printf("Hello, World!"); //输出语句return 0; //返回语句 } 目录 一.预处理指令 1.#define #ifdef #ifndef #if #else #elif #endif 2.#inlcude a.新增一个文件 b.#include c.运行结果 d.扩…

云计算与 openstack

文章目录 一、 虚拟化二、云计算2.1 IT系统架构的发展2.2 云计算2.3 云计算的服务类型 三、Openstack3.1 OpenStack核心组件 一、 虚拟化 虚拟化使得在一台物理的服务器上可以跑多台虚拟机&#xff0c;虚拟机共享物理机的 CPU、内存、IO 硬件资源&#xff0c;但逻辑上虚拟机之…

基于单片机的恒流开关电源 BUCK电路设计

1 前言 1.1课题研究意义 开关电源顾名思义&#xff0c;开关电源便是使用半导体开关器件&#xff08;如晶体管、场效应管、可控硅闸流管等&#xff09;&#xff0c;经过控制电路&#xff0c;使半导体开关器件不停地“导通”和“关闭”&#xff0c;让半导体开关器件对输入的电压…

【数据结构】详解二叉树

文章目录 1.树的结构及概念1.1树的概念1.2树的相关结构概念1.3树的表示1.4树在实际中的应用 2.二叉树的结构及概念2.1二叉树的概念2.2特殊的二叉树2.2.1满二叉树2.2.2完全二叉树 2.3 二叉树的性质2.4二叉树的存储结构2.4.1顺序结构2.4.2链表结构 1.树的结构及概念 1.1树的概念…

if语句知识点

作用 让顺序执行的代码产生分歧。 if 语句 作用&#xff1a;满足条件时&#xff0c;多执行一些代码。 语法&#xff1a; if(bool类型值)//bool类型相关&#xff1a;bool变量&#xff0c;条件运算符表达式&#xff0c;逻辑运算符表达式 {满足条件要执行的代码&#xff0c;写在…

c++ QT 实现QMediaPlayer播放音频显示音频级别指示器

文章目录 效果图概述代码总结 效果图 概述 QMediaPlayer就不介绍了&#xff0c;就提供了一个用于播放音频和视频的媒体播放器 QAudioProbe 它提供了一个探针&#xff0c;用于监控音频流。当音频流被捕获或播放时&#xff0c;QAudioProbe 可以接收到音频数据。这个类在需要访问…

【Java面试】六、Spring框架相关

文章目录 1、单例Bean不是线程安全的2、AOP3、Spring中事务的实现4、Spring事务失效的场景4.1 情况一&#xff1a;异常被捕获4.2 情况二&#xff1a;抛出检查异常4.3 注解加在非public方法上 5、Bean的生命周期6、Bean的循环引用7、Bean循环引用的解决&#xff1a;Spring三级缓…

结构体相关习题的补充

结构体相关习题的补充 题目1&#xff1a; 如有以下代码&#xff1a; struct student {int num;char name[32];float score; }stu;则下面的叙述不正确的是&#xff1a;( ) A.struct 是结构体类型的关键字 B.struct student 是用户定义的结构体类型 C.num, score 都是结构体…

Python中Web开发-Django框架

大家好&#xff0c;本文将带领大家进入 Django 的世界&#xff0c;探索其强大的功能和灵活的开发模式。我们将从基础概念开始&#xff0c;逐步深入&#xff0c;了解 Django 如何帮助开发人员快速构建现代化的 Web 应用&#xff0c;并探讨一些最佳实践和高级技术。无论是初学者还…

身份认证与口令攻击

身份认证与口令攻击 身份认证身份认证的五种方式口令认证静态口令动态口令(一次性口令)动态口令分类 密码学认证一次性口令认证S/KEY协议改进的S/KEY协议 其于共享密钥的认证 口令行为规律和口令猜测口令规律口令猜测 口令破解操作系统口令破解Windows密码存储机制Windows密码破…

数据结构-堆排序问题

需要在数组里面进行排序&#xff0c;我们可以采取堆排序对其解决问题 版本1&#xff1a; 创建一个数组等大的堆&#xff0c;把数组里面的数值输入到堆里面进行堆排序&#xff0c;但是这样的弊端就是&#xff0c;不是顺序排序 版本2&#xff1a; 每次我们取堆顶然后打印&#xf…

举个栗子!Tableau 技巧(275):散点图的数值重合怎么办?抖动图来咯

散点图是大家经常使用的分析图表&#xff0c;但是如果出现多个数据点具有完全相同的 X 和 Y 值&#xff0c;多个散点重叠并隐藏后&#xff0c;查看数据就很不方便了。 遇到这种情况&#xff0c;该怎么办&#xff1f;其实可以尝试将数据点稍微抖动一下&#xff01;如下图&#…

MT3045 松鼠接松果

思路&#xff1a; 求x的一个区间&#xff0c;使区间中的松果的最大y坐标和最小y坐标的差至少为D。若有多个区间&#xff0c;则取最小的那个。 即使用单调队列不断维护最大值和最小值。 首先L固定不动&#xff0c;R不断右移&#xff1a; 即若函数f(R)max[L,R]-min[L,R] >…

探秘Flask中的表单数据处理

新书上架~&#x1f447;全国包邮奥~ python实用小工具开发教程http://pythontoolsteach.com/3 欢迎关注我&#x1f446;&#xff0c;收藏下次不迷路┗|&#xff40;O′|┛ 嗷~~ 目录 一、引言 二、Flask中的表单处理机制 三、Flask表单处理实战 四、处理表单数据的注意事项…

万字解析线控底盘技术

文章出处&#xff1a;汽车学堂Automooc 引言 在当今这个由科技驱动的时代&#xff0c;汽车电动化、智能化已成为汽车行业的热门话题。特斯拉的自动驾驶功能、蔚来的换电模式、以及比亚迪的刀片电池技术&#xff0c;这些创新不仅引领着市场趋势&#xff0c;也推动着消费者对智…

Java常用API(三)

一、Arrays类 1.定义 Arrays是一个用于操作数组的工具类。 2.常用方法 1.toString方法 public class Demo {public static void main(String[] args) {//toString 将数组变成字符串int[] arr {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};System.out.println(Arrays.toString(arr));…

DNS 解析过程

文章目录 简介特点查询方式⚡️1. 浏览器缓存2. 系统缓存&#xff08;hosts文件&#xff09;3. 路由器缓存4. 本地域名服务器5. 根域名服务器6. 顶级域名服务器7. 权限域名服务器8. 本地域名服务器缓存并返回9. 操作系统缓存并返回10. 浏览器缓存并访问流程图 总结 简介 DNS&a…