# ORE【windows】挖矿教程 **Published by:** [Untitled](https://paragraph.com/@0xf8aec4f60b2e1e4b5e493e18218bda2380bed81c/) **Published on:** 2024-04-06 **URL:** https://paragraph.com/@0xf8aec4f60b2e1e4b5e493e18218bda2380bed81c/ore-windows ## Content 打开WINDOWS电脑的WSL 启用或关闭Windows功能 安装 2.安装Rust环境 根据自己的电脑系统进行安装:我的电脑为X64架构,点击下载 双击打开下载文件之后 按回车进行安装,安装过程中出现弹窗请全部允许。 结束之后搜索CMD 按上图所示以管理员方式运行 输入:rustup --version 出现如图所示即为安装成功,第一步到此结束 2.安装SOLANA,常规方法 输入如下指令:curl https://release.solana.com/v1.18.4/solana-install-init-x86_64-pc-windows-msvc.exe… --output C:\\solana-install-tmp\\solana-install-init.exe --create-dirs 如图下载不了的,可通过另一种方式来完成 2.solana安装失败可采用如下方法: 打开网址: https://github.com/solana-labs/solana/releases?page=1 打开 下载 在C盘建立文件夹:solana-install-tmp, 并将下载文件放入其中,修改文件名为 solana-install-init 在CMD (命令提示符)管理员权限中输入以下并点击回车 C:\solana-install-tmp\solana-install-init.exe v1.18.9 成功之后,请关闭命令提示符(CMD)并重新打开 输入:solana --version 至此 SOLANA环境安装成功 3.创建钱包 输入指令:这里的ccc 为你自己的用户名,你的秘钥会保存在C盘下,solana-keygen new --outfile “c:\Users\ccc\.config\solana\id.json“ 出现图中所示之后,是提示你要输入密码,保证你账户的安全性,输入过程中为空,不是出错 至此钱包建立完成,可向上述钱包地址发送0.1SOL 钱包地址跟下面秘钥对不上的,可打开 C盘下你的Id.json文件复制到BackPack钱包中以秘钥的形式导入。对比是否与上图钱包地址一致,一致转入即可。 4.安装ORE-CLI 在 cmd 命令提示符(管理员权限下)输入:cargo install ore-cli 等待安装即可,如果出错就继续执行刚才的指令就行,直到安装成功 5.此时就可以运行了,运行代码为:其中ccc 替换成你的用户名,跟上述步骤一样不在阐述 ore --rpc https://api.mainnet-beta.solana.com --keypair "C:\Users\ccc\.config\solana\id.json" --priority-fee 100 mine --threads 4 但是因为ore 很容易失败,为了解放双手 可通过以下步骤来执行: 安装git 打开网址: https://git-scm.com/downloads 下载并安装,安装过程一路点下去就行 2.将以下代码 放入文本文件中 另存为 .sh文件 代码:#!/bin/bash # The command you want to run # 注意:最好指定id.json的绝对路径 CMD="ore --rpc https://api.mainnet-beta.solana.com --keypair c:/Users/ccc/.config/solana/id.json --priority-fee 100 mine --threads 4" # Infinite loop to keep running the command while true; do echo "Startng the minerk" # Execute the command $CMD # If the command fails (exits with a non-zero exit status), you can handle it here if [ $? -ne 0 ]; then echo "The command failed with an error. Restarting..." else echo "The command completed successfully. Restarting..." fi # Optional: add a delay before restarting the command, if needed sleep 1 done 完成之后 直接双击运行,至此结束 ## Publication Information - [Untitled](https://paragraph.com/@0xf8aec4f60b2e1e4b5e493e18218bda2380bed81c/): Publication homepage - [All Posts](https://paragraph.com/@0xf8aec4f60b2e1e4b5e493e18218bda2380bed81c/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@0xf8aec4f60b2e1e4b5e493e18218bda2380bed81c): Subscribe to updates