把自己的服務器添加到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.pswp.cn/bicheng/20441.shtml
繁體地址,請注明出處:http://hk.pswp.cn/bicheng/20441.shtml
英文地址,請注明出處:http://en.pswp.cn/bicheng/20441.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Easy RoCE:在SONiC交換機上一鍵啟用無損以太網

RDMA(遠程直接內存訪問)技術是一種繞過 CPU 或操作系統,在計算機之間直接傳輸內存數據的技術。它釋放了內存帶寬和 CPU,使節點之間的通信具有更低的延遲和更高的吞吐量。目前,RDMA 技術已廣泛應用于高性能計算、人工智…

車流量監控系統

1.項目介紹 本文檔是對于“車流量檢測平臺”的應用技術進行匯總,適用于此系統所有開發,測試以及使用人員,其中包括設計背景,應用場景,系統架構,技術分析,系統調度,環境依賴&#xf…

MongoDB~存儲引擎了解

存儲引擎 存儲引擎是一個數據庫的核心,主要負責內存、磁盤里數據的管理和維護。 MongoBD的優勢,在于其數據模型定義的靈活性、以及可拓展性。但不要忽略,其存儲引擎也是插件式的存在,支持不同類型的存儲引擎,使用不同…

導線防碰撞警示燈:高壓線路安全保障

導線防碰撞警示燈:高壓線路安全保障 在廣袤的大地上,高壓線路如同血脈般縱橫交錯,然而,在這看似平靜的電力輸送背后,卻隱藏著不容忽視的安全隱患。特別是在那些輸電線路跨越道路、施工等區域的路段,線下超…

頂點著色技術在AI去衣中的作用

在當今的數字時代,人工智能(AI)已經滲透到我們生活的方方面面,從智能家居到自動駕駛汽車,再到在線購物推薦。然而,AI的影響遠不止于此。近年來,AI在圖像處理和計算機視覺領域的應用取得了顯著進…

c++字符串相關接口

c字符串相關接口 1.str2wstr(str轉換wstr)2.wstr2str(str轉換wstr)3.Utf8ToAsi(Utf8轉換ANSI)4.AsiToUtf8(ANSI轉換Utf8)5.stringformatA/stringformatW(按照指定的格式格式化字符串)6.GetStringBetween(獲取cStart cEnd之間的字符串)7.Char2Int(char轉int)8.Str2Bin(字符串轉換…

視覺語言大模型llava學習

1. 拉取 https://github.com/haotian-liu/LLaVA 視覺語言大模型是人工智能領域一種重要的多模態模型,它結合了計算機視覺(CV)和自然語言處理(NLP)的技術,使得模型能夠同時理解圖像和文本信息。這類模型在多…

hadoop部署

需要3臺機子,Linux為centos7 分別設置靜態ip,設置主機名,配置主機名映射,配置ssh免密登入 hadoop1 192.168.1.7 hadoop2 192.168.1.8 hadoop3 192.168.1.9 vi /etc/sysconfig/network-scripts/ifcfg-ens33TYPE"Ethernet" PROX…

Kotlin 泛型

文章目錄 定義泛型屬性泛型函數泛型類或接口 where 聲明多個約束泛型具體化in、out 限制泛型輸入輸出 定義 有時候我們會有這樣的需求:一個類可以操作某一類型的對象,并且限定只有該類型的參數才能執行相關的操作。 如果我們直接指定該類型Int&#xff…

機器人抓取檢測(Robot Grasping Detection)

目錄 前言 一、物體檢測 二、抓取點生成 三、運動規劃 四、控制 五、總結 前言 機器人抓取檢測(Robot Grasping Detection)是指通過計算機視覺和機器學習技術,自動識別并確定機器人如何抓取物體的一種技術。這個過程涉及多個步驟和關鍵…

【Python系列】Python 中方法定義與方法調用詳解

💝💝💝歡迎來到我的博客,很高興能夠在這里和您見面!希望您在這里可以感受到一份輕松愉快的氛圍,不僅可以獲得有趣的內容和知識,也可以暢所欲言、分享您的想法和見解。 推薦:kwan 的首頁,持續學…

詳細介紹運算符重載函數,清晰明了

祝各位六一快樂~ 前言 1.為什么要進行運算符重載? C中預定義的運算符的操作對象只能是基本數據類型。但實際上,對于許多用戶自定義類型(例如類),也需要類似的運算操作。這時就必須在C中重新定義這些運算符&#xff…

短信發送驗證碼及郵件發送驗證碼

發送短信驗證碼 阿里云發送驗證碼 public Integer sendTelCode(String tel) {String url "https://dfsns.market.alicloudapi.com/data/send_sms";String appcode "a3198282fbdf443d97aa9f3cfbe1232e";int code RandomUtil.randomInt(1000,10000);emai…

【DSP】xDAIS算法標準

1. 簡介 在安裝DSP開發支持包時,有名為 “xdais_7_21_01_07”文件夾。xDAIS全稱: TMS320 DSP Algorithm Standard(算法標準)。39條規則,15條指南。參考文檔。參考文章。 2. 三個層次 3.接口 XDAIS Digital Media。編解碼引擎。VISA(Video&…

LeetCode前端刷題指南:探索四大領域,精通五大技能,掌握六大題型,運用七大策略

LeetCode前端刷題指南:探索四大領域,精通五大技能,掌握六大題型,運用七大策略 在前端開發的廣闊領域中,刷題是提高自身能力、深入理解算法和數據結構的重要途徑。LeetCode作為知名的在線刷題平臺,為前端開…

牛客小白月賽95VP

早上藍橋杯大寄&#xff0c;算是交了300元買了件T恤qaq 1.簽到&#xff1a;https://ac.nowcoder.com/acm/contest/83687/A 下面是AC代碼&#xff1a; #include<bits/stdc.h> using namespace std; int main() {int a,b;cin>>a>>b;if(ab) cout<<&quo…

簡述你對 SPA 單??的理解,它的優缺點分別是什么 ?

SPA&#xff08;Single-Page Application&#xff0c;單頁應用&#xff09;是一種在Web開發中廣泛使用的應用架構模式。它允許用戶通過交互操作來更新頁面的部分內容&#xff0c;而無需重新加載整個頁面。以下是關于SPA的理解、優點和缺點的簡要說明。 SPA的理解 SPA的核心思…

qi5uxeel算法分析流程記錄libmsec.so

動態注冊函數主要方法在so層。 libmsec.so 通過regsiterNative方法注冊62個函數 加殼混淆ollvm動態反調試等你還能再惡心點不 分析流程定位關鍵點 算法設計SM4以及各類自定義簽名算法 涉及到的知識包含Java C Android 完整混淆流程如下圖&#xff0c; 不得不說你開發的…

微信小程序canvas畫圖使用百分比適配不同機型屏幕達到任何屏幕比例皆可!完美適配任何機型!指定canvas尺寸適配亦可!保證全網唯一完美

錯誤代碼示例: // 在onLoad中調用 const that = this wx.getSystemInfo({success: function (res) {console.log(res)that.setData({model: res.model,screen_width: res.windowWidth/375,screen_height: res.windowHeight})} }) 我看到網上很多使用上面這種代碼去適配,其…

C語言 指針——函數指針

目錄 什么是函數指針&#xff1f; 函數指針的定義 定義函數指針時的常見錯誤 函數指針有什么用&#xff1f; 函數指針的主要應用 什么是函數指針&#xff1f; 函數指針 (Function Pointer) 就是指向函數的指針變量 數據類型 ( * 指針變量名 ) ( 形參列表 ); 例如&#x…