把自己的服务器添加到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/bash

YOUR_REGISTRATION_CODE_HERE=自己的注册码
HOSTPORT=4000
CONTAINERPORT=4000

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 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 bash
 
if [ "$#" -ne 1 ]; then
  echo "Usage: $0 PORT"
  exit 22  # Invalid Arguments
fi
 
PORT=$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 --reload
 
firewall-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!

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

从零开始:CANDelaStudio之CDD S3 Server时间异常

0 前言 关于CDD制作有疑问的小伙伴可以参考以下文章: 从零开始:CANDelaStudio之CDD制作(一) 从零开始:CANDelaStudio之CDD制作(二) 本文主要对日常在CDD中碰到的一些问题做一个补充。 1 …

C++ 快排算法

今天看到一种清爽的快速算法,复习一下~ 快速排序算法的平均时间复杂度是O(n log n),最坏情况下的时间复杂度是O(n^2)。 快速排序的最佳情况是每次分割都平均分配元素,这种情况下时间复杂度可降至O(n log n)。 快速排序的基本步骤如下&#…

影响生产RAG流水线5大瓶颈

检索增强生成(Retrieval Augmented Generation,RAG)已成为基于大型语言模型的生成式人工智能应用的关键组成部分。其主要目标是通过将通用语言模型与外部信息检索系统集成,增强通用语言模型的能力。这种混合方法旨在解决传统语言模…

惯性动作捕捉与数字人实时交互/运营套装,对高校元宇宙实训室有何作用?

惯性动作捕捉与数字人实时交互/运营套装,可以打破时空限制,通过动捕设备写实数字人软件系统动捕设备系统定制化数字人短视频渲染平台,重塑课程教学方式,开展元宇宙沉浸式体验教学活动和参观交流活动。 写实数字人软件系统内置丰富…

23种软件设计模式——工厂模式

工厂模式 工厂模式(Factory Pattern)是 Java 中最常用的设计模式之一,它提供了一种创建对象的方式,使得创建对象的过程与使用对象的过程分离。 工厂模式提供了一种创建对象的方式,而无需指定要创建的具体类。 通过使…

renren-fast-vue启动报错

问题描述 拉取人人开源vue项目启动失败 报错信息 版本信息 序号名称版本号1node14.21.3 启动方案 1.拉取项目 git clone https://gitee.com/renrenio/renren-fast-vue.git 2.执行安装依赖命令 npm install 3.此时报错 chromedriver2.27.2 install: node install.js 4.手动…

参数高效微调PEFT(三)快速入门LoRA、AdaLoRA

参数高效微调PEFT(三)快速入门LoRA、AdaLoRA 我们已经了解了HuggingFace中peft库的几种高效微调方法。 参数高效微调PEFT(一)快速入门BitFit、Prompt Tuning、Prefix Tuning 参数高效微调PEFT(二)快速入门P-Tuning、P-Tuning V2 今天我们继续了解大火的高效微调方法LoRA以及…

HTML静态网页成品作业(HTML+CSS)——努比亚手机商城介绍网页(1个页面)

🎉不定期分享源码,关注不丢失哦 文章目录 一、作品介绍二、作品演示三、代码目录四、网站代码HTML部分代码 五、源码获取 一、作品介绍 🏷️本套采用HTMLCSS,未使用Javacsript代码,共有1个页面。 二、作品演示 三、代…

【ANdroid】WEb服务搭建华为云

访问本机地址:tomcaT(在设置-网络属性查找本机地址的ipv4 注册华为云账号——IOT 网络地址:8080(访问地址)要在newsStudy修改为本机地址的地址 注册成功付费后,打开cloudSHEll进入linux命令台 保存文件在home目录下…

百度地图2

覆盖物 叠加层 添加叠加层 GroundOverlay(bounds: Bounds, opts: GroundOverlayOptions):地图上的地面叠加层。 Bounds(sw: Point, ne: Point):表示地理坐标的矩形区域。sw表示矩形区域的西南角,参数ne表示矩形区域的东北角。 GroundOverlayOptions&#xff1a…

一文简述「低代码」到底是什么?

低代码是什么?低代码原理是什么?低代码的组成要素有哪些?低代码应用场景有哪些?低代码的优势是什么?低代码开发平台与传统开发方法的区别?本文是本人和团队从业十年来的经验结晶,全文3000&#…

ChatTTS,语气韵律媲美真人的开源TTS模型,文字转语音界的新魁首,对标微软Azure-tts

前两天 2noise 团队开源了ChatTTS项目,并且释出了相关的音色模型权重,效果确实非常惊艳,让人一听难忘,即使摆在微软的商业级项目Azure-tts面前,也是毫不逊色的。 ChatTTS是专门为对话场景设计的文本转语音模型&#x…

Python中的 Lambda 函数

大家好,在 Python 编程的世界里,有一种功能强大却不常被提及的工具,它就是 Lambda 函数。这种匿名函数在 Python 中拥有着令人惊叹的灵活性和简洁性,却常常被许多开发者忽视或者只是将其当作一种附加功能。Lambda 函数的引入&…

FPGA DMA IP核使用指南

摘要 本文旨在介绍FPGA中DMA(Direct Memory Access)IP核的使用,包括其基本框架、测试代码编写以及仿真波形的分析。DMA是一种允许外围设备直接与内存进行数据交换的技术,无需CPU的介入,从而提高了数据传输的效率。 1. 引言 在现代FPGA设计中,DMA IP核因其…

(1+X)Java程序设计高级(一)

Throwable:异常的基类,所有异常都继承自 java.lang.Throwable 类,Throwable 类有两个直接子类:Error 类和 Exception 类。Error:是 Java 应用程序本身无法恢复的严重错误,应用程序不需要捕获、处理这些严重…

Java基础语法规范

语法规范 public class HelloWorld{ //类名: 1. 首字母要大写 2. 源文件名与类名相同// 单行注释/* 多行注释除这两个之外还有文档注释。不重要* /public static void main (String[] args){ /* 1. main()⽅法是类体中的主⽅法,该⽅法从{开始到}结束…

OpenEuler 的安装过程记录

一、下载openEuler镜像 1.2 打开官网,选择openEuler23.09 1.3 选择架构、场景以及软件包类型 初次使用的话基本上都是先安装虚拟机,我们大部分主机都是x86_64架构,场景的话就选服务器,软件版类型选择标准版,可以安装图…

两数之和-第13届蓝桥杯选拔赛Python真题精选

[导读]:超平老师的Scratch蓝桥杯真题解读系列在推出之后,受到了广大老师和家长的好评,非常感谢各位的认可和厚爱。作为回馈,超平老师计划推出《Python蓝桥杯真题解析100讲》,这是解读系列的第76讲。 两数之和&#xf…

基恩士激光 速度 曝光等关系

一、基恩士 CtrlN 二、速度设置 计算扫描速度 曝光时间: 1:1 相机点间隔是0.025 ,我们要扫描的图像也是1:1的话,速度可以为 采样周期我们设定为3K,假如我们的7000行就够了 速度V0.025(线间隔&#xff0…

【python】OpenCV—Color Detection

学习来自 如何使用 OpenCV Python 检测颜色 import cv2 import numpy as npdef red_hsv(img, saveFalse):lower_hsv1 np.array([0, 175, 20])higher_hsv1 np.array([10, 255, 255])lower_hsv2 np.array([170, 175, 20])higer_hsv2 np.array([10, 255, 255])mask1 cv2.inR…