# ubuntu部署Swarmbee主网节点 **Published by:** [shaochila](https://paragraph.com/@shaochila/) **Published on:** 2022-08-04 **URL:** https://paragraph.com/@shaochila/ubuntu-swarmbee ## Content 激励测试网的时候撸了点bee羊毛,主网也搞一个支持一下,最简单的安装方式,使用默认系统服务的方式运行。1,安装bee命令👇wget https://github.com/ethersphere/bee/releases/download/v1.7.0/bee_1.7.0_amd64.deb sudo dpkg -i bee_1.7.0_amd64.deb 2,编辑默认配置文件👇(默认位置/etc/bee/bee.yaml)vi /etc/bee/bee.yaml 修改如下位置👇(去掉#号)full-node: true #获得奖励就要全节点 swap-endpoint: "https://gno.getblock.io/mainnet/?api_key你的apikey" # getblock.io/cn/ 👈这里注册,选择Generate Endpoint再genosis chain再create,复制链接就行了 swap-initial-deposit: 10000000000000000 #(这里默认10000000000000000,就是一个,可以改0,但是0没奖励) 3,打币bee-get-addr #获取你的地址,一会往这里打币,上面swap-initial-deposit: 10000000000000000,是1,就是打1bzz和少量xdai手续费 获取xdai和bzz在这里可以获取少量xdai当手续费 https://gnosisfaucet.com/ 主网跨链到xdai的说明 https://developers.gnosischain.com/for-users/bridges/converting-xdai-via-bridge 也可以在这个小交易所提xdai到xdai链(dai是稳定币,约等于1u,小所风险很高,用多少充多少) https://a3dx.io/zh-cn/register?inviteCode=UBVDHLXMZ 在这里买bzz https://cowswap.exchange/ 然后打xdai和bzz到bee-get-addr的地址 重启bee👇4,验证apt install jq curl -s localhost:1635/peers | jq ".peers | length" #返回数字大于0就代表bee已经跑起来了 ## Publication Information - [shaochila](https://paragraph.com/@shaochila/): Publication homepage - [All Posts](https://paragraph.com/@shaochila/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@shaochila): Subscribe to updates - [Twitter](https://twitter.com/longmaythesun15): Follow on Twitter