Primecoin在windows上的部署和啟動服務

來源:互聯網
上載者:User

標籤:inux   local   tno   leveldb   byte   bcache   bytes   預設   cal   

 Primecoin在windows上的部署和啟動服務:

 

一、從官方獲得Primecoin的windows版安裝包:

 

二、一路像安裝用戶端一樣的安裝:

 

 

 

 

 

 

 

 

三、安裝成功後它會自動彈出用戶端運行,同步資料,我們把它關掉:

 

 

四、以服務模式啟primecoin。(非用戶端方式哦)

方法一:純命令介面

1、在命令列到D:\primecoin-server\Primecoin\daemon目錄下,執行該目錄下的primecoind.ext程式: 

D:\primecoin-server\Primecoin\daemon

primecoind.ext -printtoconsole  #-printtoconsole這個參數會列印運行結果,不然什麼都不顯示。

 

2、運行後服務端就會同步區塊高度了,這個和linux上是一樣的。同時開啟另一個命令介面,通過primecoin-cli getblockcount命令檢測是否能看到正在同步的高度,若能,就說明服務正常。

 

 

 方法二:帶圖形介面。

1、到\primecoin-server\Primecoin目錄下

2、因為啟動帶圖形介面的primecoin-qt.exe命令在這。

3、帶-server參數就能讓它作為服務端啟動。

4、帶-rpcuser=user -rpcpassword=password這2個參數,不然會報錯沒有賬戶和密碼。

5、同時在另一個命令介面準備用primecoin-cli -rpcuser=user -rpcpassword=password getblockcount命令檢測服務是否正常(能否看到正在同步的區塊高度)。

6、注意primecoin-cli命令的目錄和primecoin-qt.exe目錄是不一樣的。

D:\primecoin-server\Primecoinprimecoin-qt.exe -server -rpcuser=user -rpcpassword=passwordD:\primecoin-server\Primecoin\daemonprimecoin-cli -rpcuser=user -rpcpassword=password getblockcount

 

7、然後圖形介面也會啟動了,耐心等待:

 

 

 8、圖形介面啟動成功後,再用primecoin-cli -rpcuser=user -rpcpassword=password getblockcount 命令檢測服務是否成功:

 

 

 9、還需要用幾個命令檢測服務連接埠是否正常:

 netstat -ano | findstr 9911 netstat -ano | findstr 9912

若如上所述,則表明服務正常運行了,Primecoin在windows上的部署和啟動服務成功!

 

 

 

 

 

下面是Primecoin官方參數:

Primecoin Core 版本 v0.16.1.0-c58f796-dirty (64 位元)

使用:
bitcoin-qt [命令列選項]

選項:


-?
列印出這段協助資訊並退出
-version
列印版本資訊並退出
-alertnotify=<cmd>
當收到相關提醒或者我們看到一個長分叉時執行命令(%s 將替換為訊息)
-blocknotify=<cmd>
當最佳資料區塊變化時執行命令 (命令列中的 %s 會被替換成資料區塊雜湊值)
-assumevalid=<hex>
If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: 0000000000000000000000000000000000000000000000000000000000000000, testnet: 0000000000000000000000000000000000000000000000000000000000000000)
-conf=<file>
指定設定檔 (預設: bitcoin.conf)
-datadir=<dir>
指定資料目錄
-dbcache=<n>
設定以MB為單位的資料庫緩衝大小(4 到 16384, 預設值: 450)
-loadblock=<file>
啟動時從其他來源的 blk000??.dat 檔案匯入區塊
-debuglogfile=<file>
Specify location of debug log file: this can be an absolute path or a path relative to the data directory (default: debug.log)
-maxorphantx=<n>
記憶體中最多保留 <n> 筆孤立的交易 (預設: 100)
-maxmempool=<n>
保持交易記憶體池大小低於<n>MB(預設:300)
-mempoolexpiry=<n>
不要讓交易留在記憶體池中超過 <n> 個小時 (預設值: 336)
-persistmempool
是否在退出時儲存記憶體池,並在啟動時重新載入(預設值: 1)
-blockreconstructionextratxn=<n>
Extra transactions to keep in memory for compact block reconstructions (default: 100)
-par=<n>
設定指令碼驗證的程式 (-4 到 16, 0 = 自動, <0 = 保留自由的核心, 預設值: 0)
-prune=<n>
Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >550 = automatically prune block files to stay under the specified target size in MiB)
-reindex-chainstate
從當前索引的區塊中重建鏈狀態
-reindex
Rebuild chain state and block index from the blk*.dat files on disk
-txindex
維護一份完整的交易索引, 用於 getrawtransaction RPC調用 (預設: 0)
-addrindex
Maintain a full address index, used by the searchrawtransactions rpc call (default: 0)


串連選項:


-addnode=<ip>
Add a node to connect to and attempt to keep the connection open (see the `addnode` RPC command help for more info)
-banscore=<n>
斷開 非禮節點的閥值 (預設: 100)
-bantime=<n>
限制 非禮節點 若干秒內不能串連 (預設: 86400)
-bind=<addr>
綁定指定的IP地址開始監聽。IPv6地址請使用[host]:port 格式
-connect=<ip>
Connect only to the specified node(s); -connect=0 disables automatic connections (the rules for this peer are the same as for -addnode)
-discover
發現自己的 IP 位址(預設: 監聽並且無 -externalip 或 -proxy 時為 1)
-dns
使用 -addnode, -seednode 和 -connect 選項時允許查詢DNS (預設: 1)
-dnsseed
Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect used)
-externalip=<ip>
指定您的公用地址
-forcednsseed
始終通過 DNS 查詢節點地址 (預設: 0)
-listen
接受來自外部的串連 (預設: 如果不帶 -proxy or -connect 參數設定為1)
-listenonion
自動建立Tor隱藏服務 (預設:1)
-maxconnections=<n>
保留最多 <n> 條節點串連 (預設: 125)
-maxreceivebuffer=<n>
每個串連的最大接收緩衝,<n>*1000 位元組 (預設: 5000)
-maxsendbuffer=<n>
每個串連的最大發送緩衝,<n>*1000 位元組 (預設: 1000)
-maxtimeadjustment
Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: 4200 seconds)
-onion=<ip:port>
通過 Tor 隱藏服務串連節點時使用不同的 SOCKS5 代理 (預設: -proxy)
-onlynet=<net>
只串連 <net>網路中的節點 (ipv4, ipv6 或 onion)
-permitbaremultisig
是否轉寄 非P2SH格式的多簽名交易 (預設: 1)
-peerbloomfilters
支援用 Bloom 過濾器來過濾區塊和交易(預設值: 1)
-port=<port>
使用連接埠 <port> 監聽串連 (預設: 9911 ; testnet: 9913)
-proxy=<ip:port>
通過 SOCKS5 代理串連
-proxyrandomize
為每個代理串連隨機化憑據。這將啟用 Tor 流隔離 (預設: 1)
-seednode=<ip>
串連一個節點並擷取對端地址,然後中斷連線
-timeout=<n>
指定連線逾時毫秒數 (最小: 1, 預設: 5000)
-torcontrol=<ip>:<port>
開啟監聽 onion 串連時的 Tor 控制連接埠號碼 (預設值: 127.0.0.1:9051)
-torpassword=<pass>
Tor 控制連接埠密碼 (預設值: 空白)
-upnp
使用UPnp映射監聽連接埠 (預設: 0)
-whitebind=<addr>
綁定到指定地址和串連的白名單節點。 IPv6使用 [主機]:連接埠 格式
-whitelist=<IP address or network>
Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR notated network (e.g. 1.2.3.0/24). Can be specified multiple times. 白名單節點不能被DoS banned ,且轉寄所有來自他們的交易(即便這些交易已經存在於mempool中),常用於網關
-maxuploadtarget=<n>
嘗試保持上傳頻寬低於(MiB/24h),0=無限制(預設:0)


錢包選項:


-addresstype
What type of addresses to use ("legacy", "p2sh-segwit", or "bech32", default: "legacy")
-changetype
What type of change to use ("legacy", "p2sh-segwit", or "bech32"). Default is same as -addresstype, except when -addresstype=p2sh-segwit a native segwit output is used when sending to a native segwit address)
-disablewallet
不要載入錢包和禁用錢包的 RPC 調用
-keypool=<n>
設定私密金鑰池大小為 <n> (預設:1000)
-fallbackfee=<amt>
當費用估計資料(default: BTC)不足時將會啟用的費率 (in 0.0002/kB)
-discardfee=<amt>
The fee rate (in BTC/kB) that indicates your tolerance for discarding change by adding it to the fee (default: 0.0001). Note: An output is discarded if it is dust at this rate, but we will always discard up to the dust relay fee and a discard fee above that is limited by the fee estimate for the longest target
-mintxfee=<amt>
當產生交易時,如果每KB (kB) 的手續約比這個值 (單位是 BTC) 低,就視為沒支付手續約 (預設值: 0.00001)
-paytxfee=<amt>
為付款交易添加交易費 (BTC/kB) (預設: 0.00)
-rescan
重新掃描區塊鏈以尋找遺漏的錢包交易
-salvagewallet
啟動時嘗試從已損壞的錢包檔案中恢複私密金鑰
-spendzeroconfchange
付款時允許使用未確認的零錢 (預設: 1)
-txconfirmtarget=<n>
如果未設定交易費用,自動添加足夠的交易費以確保交易在平均n個資料區塊內被確認 (預設: 6)
-walletrbf
Send transactions with full-RBF opt-in enabled (RPC only, default: 0)
-upgradewallet
程式啟動時升級錢包到最新格式
-wallet=<file>
指定錢包檔案(資料目錄內) (預設: wallet.dat)
-walletbroadcast
錢包廣播交易處理 (預設: 1)
-walletdir=<dir>
Specify directory to hold wallets (default: <datadir>/wallets if it exists, otherwise <datadir>)
-walletnotify=<cmd>
當最佳區塊變化時執行命令 (命令列中的 %s 會被替換成區塊雜湊值)
-zapwallettxes=<mode>
刪除錢包的所有交易記錄,且只有用 -rescan參數啟動用戶端才能重新取回交易記錄 (1 = 保留 tx meta data , 如 account owner 和 payment request information, 2 = 不保留 tx meta data)


ZeroMQ 通知選項:


-zmqpubhashblock=<address>
允許在<address>廣播雜湊區塊
-zmqpubhashtx=<address>
允許在<address>廣播雜湊交易
-zmqpubrawblock=<address>
允許在<address>廣播原始區塊
-zmqpubrawtx=<address>
允許在<address>廣播原始交易


調試/測試選項:


-uacomment=<cmt>
為使用者代理程式字串附加說明
-debug=<category>
輸出調試資訊 (預設: 0, 提供 <category> 是可選項). 如果<category>未提供或<category> = 1,輸出所有調試資訊。 <category> 可能是: net, tor, mempool, http, bench, zmq, db, rpc, estimatefee, addrman, selectcoins, reindex, cmpctblock, rand, prune, proxy, mempoolrej, libevent, coindb, qt, leveldb.
-debugexclude=<category>
排除某一類Debug資訊。可以與 -debug=1 一起使用,以輸出除了指定類別以外的Debug日誌。
-help-debug
顯示所有調試選項 (用法: --協助 -協助調試)
-logips
在調試輸出中包含IP地址 (預設: 0)
-logtimestamps
輸出調試資訊時,前面加上時間戳記 (預設: 1)
-maxtxfee=<amt>
最大的單次錢包或原始轉賬費用(BTC),設定太低可能導致大尺寸交易失敗(預設:1000000000.00)
-printtoconsole
跟蹤/調試資訊輸出到控制台,不輸出到 debug.log 檔案
-shrinkdebugfile
用戶端啟動時壓縮debug.log檔案(預設:no-debug模式時為1)


區塊鏈選擇選項:


-testnet
使用測試鏈


節點中繼選項:


-bytespersigop
Equivalent bytes per sigop in transactions for relay and mining (default: 20)
-datacarrier
Relay and mine data carrier transactions (default: 1)
-datacarriersize
Maximum size of data in data carrier transactions we relay and mine (default: 83)
-mempoolreplacement
保證記憶體池中的交易更換(預設:1)
-minrelaytxfee=<amt>
交易費(in BTC/kB)比這更小的在關聯、挖掘和產生交易時將被視為零費交易 (預設: 0.01)
-whitelistrelay
即使在無關聯交易(預設: 1)時也接受來自白名單同行的關聯交易
-whitelistforcerelay
Force relay of transactions from whitelisted peers even if they violate local relay policy (default: 1)


資料區塊建立選項:


-blockmaxweight=<n>
設定BIP141最大區塊權重 (預設: 3996000)
-blockmaxsize=<n>
Set maximum BIP141 block weight to this * 4. Deprecated, use blockmaxweight
-blockmintxfee=<amt>
Set lowest fee rate (in BTC/kB) for transactions to be included in block creation. (default: 0.00001)


RPC 伺服器選項:


-server
接受命令列和 JSON-RPC 命令
-rest
接受公用 REST 請求 (預設: 0)
-rpcbind=<addr>[:port]
Bind to given address to listen for JSON-RPC connections. This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times (default: 127.0.0.1 and ::1 i.e., localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., all addresses)
-rpccookiefile=<loc>
認證Cookie的位置 (預設: data目錄)
-rpcuser=<user>
JSON-RPC 串連使用者名稱
-rpcpassword=<pw>
JSON-RPC 串連密碼
-rpcauth=<userpw>
Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times
-rpcport=<port>
使用 <port>連接埠監聽 JSON-RPC 串連 (預設: 9912 ; testnet: 9914)
-rpcallowip=<ip>
允許來自指定地址的 JSON-RPC 串連。 <ip>為單一IP (如: 1.2.3.4), 網路/掩碼 (如: 1.2.3.4/255.255.255.0), 網路/CIDR (如: 1.2.3.4/24)。該選項可多次指定。
-rpcserialversion
Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: 1)
-rpcthreads=<n>
設定RPC服務線程數 (預設: 4)


介面選項:


-choosedatadir
在啟動時選擇目錄(預設0)
-lang=<lang>
設定語言, 例如“zh-CN”(預設:系統語言)
-min
啟動時最小化
-rootcertificates=<file>
設定付款請求的SSL根憑證(預設:-系統-)
-splash
顯示啟動畫面(預設:1)
-resetguisettings
重設圖形介面所有的變更設定

 

 

 

 

 

 

 

 

 

Primecoin在windows上的部署和啟動服務

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.