今天整了个烤猫38G的矿机,在windows电脑下测试,但是要路由器电脑太麻烦了。
机房有交换机服务器,干脆就用现存的。进过测试完全可行。
1.使用linux服务器运行mining_proxy
这个稍微安装的时候注意一下
- Download TGZ file from
https://github.com/slush0/stratum-mining-proxy/tarball/master - Unpack it by typing "tar xf slush0-stratum-mining_proxy*.tar.gz"
- Most likely you already have Python installed on your system. Otherwise install it by "sudo apt-get install python-dev" (on Ubuntu and Debian). centos : yum install python-devel 看清楚了不是dev哦。
- Type "sudo python setup.py install" in the unpacked directory. 安装是可能提示错误,仔细查看一般是缺少依赖库文件,先安装一下即可。
- You can start the proxy by typing "./mining_proxy.py" in the terminal window. Using default settings, proxy connects to Slush's pool interface.
- If you want to connect to another pool or change other proxy settings, type "mining_proxy.py --help".
-
最后做个自启动脚本run.sh,内容如下:
mining_proxy.py -o stratum.f2pool.com -p 3333 -cu xxxx.1 -cp 123
好了,大功告成了。
题外话,为了安全起见,烤猫一般不适用公网IP,适用保留IP,这样管理不方便
可以使用nginx代理来实现,另外在加上密码访问就很安全了。
访问密码设置见:http://www.weste.net/2013/6-7/92025.html
nginx反向代理大家自己百度啦。