Install AstreoBot in Linux (Centos 7)

  1. Home
  2. Docs
  3. Documentation
  4. Installation and activation
  5. Install AstreoBot in Linux (Centos 7)

To install AstreoBot on Linux, follow the instructions below. These instructions are oriented to Centos 7, and may vary depending on the chosen distribution :

  1. Enter your VPS or Linux device via console. If you manage a Linux VPS from Windows, you must install a program for this purpose:
    1. Download Putty in your Windows PC.
    2. Run the downloaded file.
    3. Complete the Host Name (or IP Address) field with that of your VPS.
    4. Press the Open button. The console will open.
    5. Type root and press the enter key.
    6. Write your VPS password and press the enter key.
  2. Run the following commands one by one. These will install necessary utilities. Important: If one fails, do not continue.
    /bin/rm -f /etc/yum.repos.d/nodesource*
    curl -sL https://rpm.nodesource.com/setup_10.x | bash -
    yum -y install nodejs
    yum -y install gcc-c++ make
    npm install pm2 -g
    yum install ntp ntpdate -y
    systemctl start ntpd
    systemctl enable ntpd
    systemctl status ntpd
    timedatectl

    yum install unzip -y
    yum install zip -y
    ntpstat
    firewall-cmd --zone=public --add-port=3000/tcp --permanent
    firewall-cmd --reload
  3. Go to http://download.astreobot.com/, select Linux (64 bits) as the operating system, the Full package and paste your AstreoBot license. You will get the link to download your version with the wget or curl command. Choose one of them and paste it on the console.
  4. Unzip all the files in the folder where you’ll run the bot:
    unzip linux64_latest.zip
  5. Go to the linux64 folder:
    cd linux64
  6. Run astreobot file:
    pm2 start astreobot
  7. Check pm2 logs:
    pm2 log astreobot
  8. Wait while the database is updated. It is important to wait until you receive the confirmation message “Database upgraded”.
  9. Leave logs with key combination control + C
  10. Enable automatic start of Astreobot.
    pm2 startup
  11. Close console:
    exit
  12. Open the following URL in a browser (we recommend Chrome): http://localhost:3000 or
    http://VPS-IP:3000
  13. Log in with the password changeme. Important: Go to Settings > Profile and set your own password.
  14. Now you can Activate your license.
IMPORTANT: We recommend to install AstreoBot on a VPS or a computer that is always switched on and with continuous internet connectivity so that AstreoBot can execute purchases and sales without interruptions.