Advertisement

将服务器加入presearch节点

阅读量:

It's a scam. Before, if you assessed the token's price, you could expect to receive between 150 and 200 over 12 to 13 months of regular searches.

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

It is an innovative decentralized platform designed to reward participants by offering cryptocurrency incentives for the operation of search nodes. Here’s a step-by-step guide to adding your computer as a Preresearch node:

1. 创建Presearch账户

您需要访问Presearch平台,并注册一个账户(如果尚未注册)。

2. Set Up a VPS or Dedicated Server

大多数Preresearch节点通常运行在基于Linux的操作系统上。您可以选择虚拟专用地域服务器(VPS)或专用服务器。
一些知名的服务提供商包括DigitalOcean、AWS、Google Cloud和Vultr。
根据您的需求选择合适的VPS套餐(通常最低配置要求1个CPU核心、1 GB内存和10 GB磁盘空间)。

3. Install Docker

- Presearch nodes are contained within a Docker container. Installing Docker on your server:

  • Ensure Docker is installed by verifying the version through the command line interface (CLI).
  • For further assistance, consult the official documentation at Docker官网.
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  

使用/dockr current命令时遇到问题:无法连接到运行中的Docker daemnon at unix:///var/run/docker.sock. 请问容器化服务[Docker]是否正常运行?

复制代码
    sudo service docker start

5. Run the Presearch Node

- Start the Presearch node container with your registration

复制代码
(https://nodes.presearch.com/dashboard "code"). Replace `YOUR-REGISTRATION-CODE` with the code you get from your Presearch account:  
```bash  

使用 Docker 启动一个持续运行的服务,并命名为 presearch-node;在环境中设置名为 REGISTRATION_CODE 的环境变量为 [YOUR-REGISTRATION-CODE];该服务将连接到预注册页面并包含注册码的 URL 地址;同时将 Docker 内部用于预注册服务的地址(默认为 4851)映射到本地机器上的相应地址,并运行预设的应用程序

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

运行一个命名为presearch-auto-updater的Docker容器,在不被停止的情况下自动重启,并且挂载了相同文件路径的 volumes。该容器运行presearch(auto-updater)服务以清理旧日志,并每隔900秒检查一次配置状态。

 docker pull presearch/node

# docker run -dt --container 预搜索节点 --restart 除非停止重启 -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node

docker运行并配置持续时间启动模式下的预搜索节点容器,在$HOST_PORT与$CONTRAS_PORT之间建立端口映射,并将预设存储挂载到应用程序节点目录下;同时设置环境变量REGISTRATION_CODE为$YOUR_REGISTRATION_CODE_HERE

 docker logs -f presearch-node

Windows cmd

复制代码
docker pause preresearch-node & docker remove preresearch-node & docker pause preresearch-auto-updater & docker remove preresearch-auto-updater &
docker exec -it --name=preresearch-auto-updater --restart=unless-stopped && connect=now /var/run/docker.sock:/var/run/docker.sock && run-preprocess auto-updater && cleanup && schedule interval 900 && attach &&
preprocess auto-updater preprocess node & docker pull preprocess/node &
docker exec -it --name=pre research node --restart=unless stopped && attach volume preprocess node storage:/app/node && environment REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE preprocess node & log preprocess 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.

presearch dashboard

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.
- 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

HTTPS_PROXY
127.0.0.1:1080

bash 复制代码
# git clone https://github.com/PresearchOfficial/presearch-node.git

该用户可采用以下方式在本地克隆该GitHub存储库:[git clone https://github.com/PreresearchOfficial/presearch-packages] 使用`git clone`命令进行克隆操作。

![](https://ad.itadn.com/c/weblog/blog-img/images/2025-05-31/8afpyCF9EYPMWltsorBzSxe4LTnU.png)

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命令启动预搜索节点服务。
通过sudo命令启动预搜索节点服务的启动过程。

10. Maintain and Monitor Your Node

- Regularly check the status and logs of your node:

bash 复制代码
使用sudo权限启动预搜索节点状态检查
    以sudo权限运行presearch-node的 journalctl命令,并指定文件描述符输出

- 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!

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!

全部评论 (0)

还没有任何评论哟~