如何安装配置BREW如何配置java开发环境境

您还可以使用以下方式登录
当前位置:&>&&>&&>& > 在MAC环境下之以太坊开发环境安装
在MAC环境下之以太坊开发环境安装
在MAC环境下之以太坊开发环境安装:先访问github上go语言开发客户端网址。/ethereum/go-ethereum安装ethereum/ethereum/go-ethereum/wiki/Building-Ethereum在MAC上安装brew tap ethereum/ethereumbrew install ethereumdogiant@bogon:/usr/local$brew tap ethereum/ethereumUpdating Homebrew...==&Tapping ethereum/ethereumCloning into '/usr/local/Homebrew/Library/Taps/ethereum/homebrew-ethereum'...remote: Counting objects: 6, done.remote: Compressing objects: 100% (6/6), done.remote: Total 6 (delta 1), reused 1 (delta 0), pack-reused 0Unpacking objects: 100% (6/6), done.Checking connectivity... done.Tapped 3 formulae (31 files, 33.9K)dogiant@bogon:/usr/local$brew install ethereum==&Installing ethereum from ethereum/ethereum==&Installing dependencies for ethereum/ethereum/ethereum:go==&Installing ethereum/ethereum/ethereum dependency:go==&Downloading/bottles/go-1.7.4_1.el_capitan.bottle.tar.gz######################################################################## 100.0%==&Pouring go-1.7.4_1.el_capitan.bottle.tar.gz==&CaveatsAs of go 1.2, a valid GOPATH is required to use the `go get` command:https://golang.org/doc/code.htmlYou may wish to add the GOROOT-based install location to your PATH:export PATH=$PATH:/usr/local/opt/go/libexec/bin==&Summary?? /usr/local/Cellar/go/1.7.4_1: 6,438 files, 250.7M==&Installingethereum/ethereum/ethereum==&Cloning/ethereum/go-ethereum.gitCloning into '/Users/dogiant/Library/Caches/Homebrew/ethereum--git'...remote: Counting objects: 2737, done.remote: Compressing objects: 100% (), done.remote: Total 2737 (delta 963), reused 1654 (delta 553), pack-reused 0Receiving objects: 100% (), 14.91 MiB | 112.00 KiB/s, done.Resolving deltas: 100% (963/963), done.Checking connectivity... done.Note: checking out 'ff07d597c420d216b4c007f9c80c3'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example:git checkout -bChecking out files: 100% (), done.==&Checking out tag v1.5.5==&go env==&make all==&CaveatsTo have launchd start ethereum/ethereum/ethereum now and restart at login:brew services start ethereum/ethereum/ethereum==&Summary?? /usr/local/Cellar/ethereum/1.5.5: 9 files, 47.7M, built in 5 minutes 30 seconds安装完毕后geth -h列出当前的用户geth account list显示空dogiant@bogon:~/ethereum/workspace$geth --datadir &~/ethdev& --devI:46.907316 cmd/utils/flags.go:615] WARNING: No etherbase set and no accounts found as defaultI:46.907493 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindataI:46.911765 ethdb/database.go:176] closed db:/Users/dogiant/ethdev/geth/chaindataI:46.912892 node/node.go:176] instance: Geth/v1.5.5-stable-ff07d548/darwin/go1.7.4I:46.912925 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindataI:46.935109 eth/backend.go:280] Successfully wrote custom genesis block: e5be111fe99ee344d6a39bc71238f3bcI:46.935127 eth/backend.go:299] ethash used in test modeI:46.935536 eth/db_upgrade.go:346] upgrading db log bloom binsI:46.935580 eth/db_upgrade.go:354] upgrade completed in 48.143&sI:46.935601 eth/backend.go:191] Protocol Versions: [63 62], Network Id: 1I:46.935744 eth/backend.go:219] Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 28 15:16:46.935983 core/blockchain.go:219] Last header: #0 [e5be9214&] TD=8 15:16:46.935998 core/blockchain.go:220] Last block: #0 [e5be9214&] TD=8 15:16:46.936007 core/blockchain.go:221] Fast block: #0 [e5be9214&] TD=8 15:16:46.p/server.go:342] Starting ServerI:49.p/discover/udp.go:227] Listening, enode://05c17f82eb3092018cae87eec77edc7d7bf024d953b0afcccd44c717f17aaf251b897dea268b49a.37.126: 15:16:49.128111 whisper/whisperv2/whisper.go:176] Whisper startedI:49.p/server.go:610] Listening on [::]: 15:16:49.129641 node/node.go:341] IPC endpoint opened: /Users/dogiant/ethdev/geth.ipcdogiant@dubiaoqideMBP:~$geth --dev console 2&& file_to_log_outputWelcome to the Geth JavaScript console!instance: Geth/v1.5.5-stable-ff07d548/darwin/go1.7.4modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0& eth.accounts[]& personal.newAccount(';)&0x556d64ecb09b5df590a2ab842b53a&& eth.accounts[&0x556d64ecb09b5df590a2ab842b53a&]& eth.accounts[&0x556d64ecb09b5df590a2ab842b53a&]& personal.newAccount(';)&0xbffed8acbe80aefee9bb&& eth.accounts[&0x556d64ecb09b5df590a2ab842b53a&,&0xbffed8acbe80aefee9bb&]&dogiant@dubiaoqideMBP:~$geth --dev account listAccount #0: {556d64ecb09b5df590a2ab842b53a} /var/folders/jy/q2f6pdjn6p11ytfx0xk8yp7m0000gn/T/ethereum_dev_mode/keystore/UTC--T07-20-52.Z--556d64ecb09b5df590a2ab842b53aAccount #1: {bffed8acbe80aefee9bb} /var/folders/jy/q2f6pdjn6p11ytfx0xk8yp7m0000gn/T/ethereum_dev_mode/keystore/UTC--T07-25-51.Z&bffed8acbe80aefee9bb& user1 = eth.accounts[0]&0x556d64ecb09b5df590a2ab842b53a&& user2 = eth.accounts[1]&0xbffed8acbe80aefee9bb&& user1&0x556d64ecb09b5df590a2ab842b53a&& user2&0xbffed8acbe80aefee9bb&& eth.getBalance(user1)0& eth.getBalance(user2)0& eth.blockNumber0& miner.start()true& eth.getBalance(user1)& eth.getBalance(user2)0& miner.stop()true& eth.blockNumber99& eth.getBalance(user1)& eth.getBalance(user2)0& eth.sendTransaction({from:user1,to:user2,value:web3.toWei(3,&ether&)})Error: account is lockedat web3.js:3119:20at web3.js:6023:15at web3.js:4995:36at :1:1& personal.unlockAccount(&0x556d64ecb09b5df590a2ab842b53a&,&123456&)true& eth.sendTransaction({from:user1,to:user2,value:web3.toWei(3,&ether&)})&0x39d604a1df899f6c80ce33279abe88aec28b6d97f83e2dda5f062dd3c099fcf3&& eth.getBalance(user2)0& miner.start()true& miner.stop()true& eth.getBalance(user2)0000000&问题1:一开始用get account list总是看不到新建的用户,后来考虑是开发控制台创建的用户要跟开发一致 加了 &dev后看到正常显示账号,看日志以太币转账,转账后需要挖矿确认。&就爱阅读网友整理上传,为您提供最全的知识大全,期待您的分享,转载请注明出处。
欢迎转载:
推荐:    【图文】搭建BREW开发环境_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
搭建BREW开发环境
上传于|0|0|暂无简介
大小:296.00KB
登录百度文库,专享文档复制特权,财富值每天免费拿!
你可能喜欢第七下载是国内最新、最齐、最安全的软件下载基地!
当前位置:
在Mac OS X下利用 brewhome 搭建 nginx 环境
日 & 作者:佚名 & 来源:本站整理 & 浏览:4551 & 评论: &
Nginx 是一个轻量级的高性能HTTP 以及反向代理服务器,今天在MAC 上成功安装。我是通过brewhome 来安装的,过程很简单。brew install nginx 一路安装很顺畅。
首先通过 git 安装 brewhome
sudo chown $USER /usr/local
cd /usr/local
git clone /mxcl/homebrew.git
cd homebrew/bin
cat brew | moresudo
./brew update
sudo ln -s /usr/local/homebrew/bin/brew /usr/bin/brew
如果&brew update&命令执行出错,请确保文件夹/usr/local的所有者权限是你本人而不是root:
sudo chown $USER /usr/local
./brew updat
export PATH=$PATH:/usr/local/homebrew/bin
然后安装 Nginx,下面的安装信息
7downdeMacBook-Pro:bin 7down$ ./brew install nginx
==& Installing dependencies for nginx: pcre, makedepend, openssl
==& Installing nginx dependency: pcre
==& Downloading https://downloads.sf.net/project/machomebrew/Bottles/pcre-8.36.m
######################################################################## 100.0%
==& Pouring pcre-8.36.mavericks.bottle.tar.gz
/usr/local/homebrew/Cellar/pcre/8.36: 146 files, 5.9M
==& Installing nginx dependency: makedepend
==& Downloading https://downloads.sf.net/project/machomebrew/Bottles/makedepend-
######################################################################## 100.0%
==& Pouring makedepend-1.0.5.mavericks.bottle.tar.gz
/usr/local/homebrew/Cellar/makedepend/1.0.5: 7 files, 92K
==& Installing nginx dependency: openssl
Warning: B cellar of openssl's bottle is /usr/local/Cellar
==& Downloading https://www.openssl.org/source/openssl-1.0.1j.tar.gz
curl: (28) Operation timed out after 5247 milliseconds with 0 out of 0 bytes received
Trying a mirror...
==& Downloading /DomT4/LibreMirror/master/OpenS
######################################################################## 100.0%
==& perl ./Configure --prefix=/usr/local/homebrew/Cellar/openssl/1.0.1j --openss
==& make depend
==& make test
==& make install MANDIR=/usr/local/homebrew/Cellar/openssl/1.0.1j/share/man MANS
==& Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/homebrew/etc/openssl/certs
/usr/local/homebrew/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local/homebrew.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
-L/usr/local/homebrew/opt/openssl/lib
CPPFLAGS: -I/usr/local/homebrew/opt/openssl/include
==& Summary
/usr/local/homebrew/Cellar/openssl/1.0.1j: 431 files, 15M, built in 3.9 minutes
==& Installing nginx
Warning: B cellar of nginx's bottle is /usr/local/Cellar
==& Downloading http://nginx.org/download/nginx-1.6.2.tar.gz
######################################################################## 100.0%
==& ./configure --prefix=/usr/local/homebrew/Cellar/nginx/1.6.2 --with-http_ssl_
==& make install
==& Caveats
Docroot is: /usr/local/homebrew/var/www
The default port has been set in /usr/local/homebrew/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
To have launchd start nginx at login:
ln -sfv /usr/local/homebrew/opt/nginx/*.plist ~/Library/LaunchAgents
Then to load nginx now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
Or, if you don't want/need launchctl, you can just run:
==& Summary
/usr/local/homebrew/Cellar/nginx/1.6.2: 7 files, 912K, built in 87 seconds
7downdeMacBook-Pro:bin 7down$
备注: sudo ln -s /usr/local/homebrew/Cellar/nginx/1.6.2/bin/nginx /usr/bin/nginx 做了个软连接。
启动nginx:访问localhost:8080 发现已出现nginx的欢迎页面了。
常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助nginx -s [reload\reopen\stop\quit]brewhome 常用的指令: brew search mysql : 搜索具体的程序包brew install mysql : 安装具体的程序包brew info mysql : 查看具体程序的信息brew uninstall mysql : 卸载具体的应用(这里只是用mysql 作个例子)我这里的配置文件地址:/usr/local/homebrew/etc/nginx/nginx.conf
编辑内容,可以制定web 目录,以及PHP 、python 等。。本文地址:在Mac OS X下利用 brewhome 搭建 nginx 环境由整理并发布,欢迎转载!
顶一下(48)
32181174561449211299104417878683145514364435742824198395837103438}

我要回帖

更多关于 linux 环境安装配置 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信