You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

使用Truffle+Ganache开发:Ubuntu下以太坊区块链存储位置咨询

Ganache 1.0.1 Data Storage Path on Ubuntu 17.10 64-bit

Hey there! Since you're using the desktop version of Ganache 1.0.1 alongside Truffle on Ubuntu 17.10, let's break down where your test blockchain data lives and how accessible it is:

Storage Location

Ganache (as an Electron-based desktop app) stores its blockchain data in a hidden user-specific directory. You can find it at:

~/.config/Ganache

Inside this folder, you'll see subdirectories corresponding to each Ganache workspace you've created. Each workspace's folder contains the LevelDB files that hold the full state of your test blockchain—accounts, transactions, contracts, and all other chain-related data.

Accessibility & Checking Disk Usage

  • Full Access: This path is completely within your Ubuntu system's accessible area. It's located in your user's home directory, so you have full read/write permissions (no root access required). To view hidden folders in the file manager, press Ctrl+H to toggle visibility.
  • Check Disk Usage: To quickly see how much space your Ganache data is taking up, open a terminal and run:
    du -sh ~/.config/Ganache
    
    If you want to check the size of a specific workspace, navigate to its subfolder first or modify the command to target that directory directly.

内容的提问来源于stack exchange,提问作者Zackorrigan

火山引擎 最新活动