# earthcoin_install **Repository Path**: eacpay/earthcoin_install ## Basic Information - **Project Name**: earthcoin_install - **Description**: 一键安装earthcoin 节点及浏览器脚本。在ubuntu18.04和22.04上可以正常安装 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: https://eacpay.com/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-30 - **Last Updated**: 2024-01-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 如何在基于linux操作系统的云服务器上安装earthcoin节点和浏览器,【注意windows下无法安装】 在云服务器上安装earthcoin节点非常简单,只需要3条命令即可。有了节点,eactalk和eacpay可以连接自己节点服务器,这样更安全,更快,eactalk和eacpay下载请认准官方com网站。ok,立即开始,教程以阿里云为例,其他云产品类似。 首先说一下基本节点要求:2核/2GB/60GB,带宽越大越好。教程中阿里云正好有一款产品除了硬盘稍小其他都合适,2核/2GB/40GB/3MB,关键是便宜,仅需99元/年,而且在2026年前续费都是99元,无论新人老人都可以购买。大家在选购时候,选择地区,请在群里面报备一下,统一分配选择地区,最好分散选择不同的地区,这样覆盖面更广。不然可能会出现一些地区节点多,一些地区无节点。 1、打开aliyun,选择99元这款,立即购买,一定要注意,购买时候地区选择和操作系统,操作系统请选择ubuntu22.04 64位,如果不清楚,请群里面咨询一下 2、购买后,重置操作系统密码 3、远程连接服务器 4、输入刚才修改的操作系统密码 5、输入 Git clone https://gitee.com/eacpay/earthcoin_install.git 回车(enter键)(国外服务器输入:git clone https://github.com/Sandokaaan/installscripts.git) 等待下载完成 6、输入cd earthcoin_install 回车(enter键)【国外服务器输入cd installscripts】,进入该目录,接下来的操作均是在该目录下进行,只需要输入该目录下的三条命令执行即可,更多的时间是等待。注意命令的输入有先后顺序。 7、输入./install_earthcoin.sh 回车(enter键),等待节点编译安装,时间相对比较长。这个过程间隔移动一下鼠标,谨防远程连接自动断线。等待earthcoin节点编译完成后,进行下一步 8、输入./install_mysql.sh 回车(enter键),进行数据库的安装。等待一会后,安装完成后,进行下一步 9、输入./install_api.sh 回车(enter键),进行earthcoin浏览器的安装。等待完成安装。安装完成后,重启操作系统。 10、在云服务器安全组中,添加入方向规则,分别开放9000和35677、15678三个端口。源:0.0.0.0/0 11、因为阿里云这样的云服务器有内外网两张网卡,earthcoin浏览器默认会获取内网ip,需要修改一下ip,输入cd / 回车(enter键),输入cd /usr/local/share/apijava 回车(enter键) 12、输入vi api.conf,按键盘上i键,使用上下键找到apiurl,将其更改为云服务器公网ip(看云服务器概览中的公网IP),按;,输入wq! 回车保存即可 13、在浏览器中输入http://公网IP:9000,就能正常访问earthcoin浏览器了。 14、这样在eactalk中就可以使用自己的节点服务器了。URL和earthcoin浏览器直接输入http://公网IP:9000即可,地球币节点直接输入自己的公网IP:35677即可(连接模式:手动模式有效) 15、这样就完成了earthcoin节点和浏览器的安装!!是不是很简单啊。欢迎大家积极创建更多的节点,共建earthcoin应用基础生态。 接下来eactalk将实施加入公共节点分享eac计划,简单的来说就是创建节点后,将节点告知群管理,我们将你的节点纳入公共节点池,共享eactalk的收入,详情参见eactalk白皮书 # installscripts Install scripts for Earthcoin under Ubuntu linux install_earthcoin.sh - This script will automatically install all packages required for Earthcoin compilation, download the Earthcoin source code, build it and install into the system as a service. Earthcoin service will run automatically after a reboot. Some user actions may be required: the password for sudo command and a confirmation of a change in a system config file. install_mysql.sh - This script will automatically install and configure mysql server into your system. install_api.sh - This script will download and install java runtime libraries and API JAVA binary distibution. API is installed as a service and run automatically after reboot. After installation, API can be accessed at http://[YOUR_IP]:9000 TO-DO: - Pre-install configuration file. - SSL version. SYSTEM REQUIREMENTS - RAM 4 GB - HDD SPACE 40 GB