Installing Blynk Server on AWS Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2018
  • This is a quick tutorial to show how to create a Blynk server on AWS Linux. Below are the commands you need so you can cut/paste them:
    sudo yum remove -y java-1.7.0-openjdk.x86_64
    sudo yum -y update
    sudo yum install -y java-1.8.0 wget
    wget github.com/blynkkk/blynk-serv...
    mkdir Blynk
    #Get Let's Encrypt certificate
    wget dl.eff.org/certbot-auto
    chmod a+x certbot-auto
    sudo ./certbot-auto certonly --agree-tos --email tom.bilan@pi4it.com --standalone -d blynk.pi4it.com --debug
    sudo chmod 755 /etc/letsencrypt/live/
    sudo chmod 755 /etc/letsencrypt/archive/
    sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
    sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 9443
    sudo service iptables save
    mail.properties
    mail.smtp.username=youremail@gmail.com
    mail.smtp.auth=true
    mail.smtp.starttls.enable=true
    mail.smtp.host=smtp.gmail.com
    mail.smtp.port=587
    mail.smtp.password=YOUREMAILPASSWORD
    mail.smtp.connectiontimeout=30000
    mail.smtp.timeout=120000
    server.properties
    server.ssl.cert=/etc/letsencrypt/live/blynk.pi4it.com/fullchain.pem
    server.ssl.key=/etc/letsencrypt/live/blynk.pi4it.com/privkey.pem
    server.ssl.key.pass=
    java -jar server-0.40.2-java8.jar -dataFolder /home/ec2-user/Blynk
    @reboot java -jar server-0.40.2-java8.jar -dataFolder /home/ec2-user/Blynk &
  • กีฬา

ความคิดเห็น • 13

  • @user-gj8rt3fe1u
    @user-gj8rt3fe1u ปีที่แล้ว

    What a nice video guide. thank you for your help.

  • @jedivino
    @jedivino 5 ปีที่แล้ว +1

    Excellent guide! Thanks for sharing. I've found with the latest AMI from Amazon an error with the certbot script not detecting the version of Linux. Easy fix, modify the file : elif [ -f /etc/motd ] && grep -iq "Amazon Linux" /etc/motd ; then

    • @zohar037
      @zohar037 5 ปีที่แล้ว

      Not sure I fully understand what to do here, sine I am getting the exact same problem.

    • @jedivino
      @jedivino 5 ปีที่แล้ว

      @@zohar037 Try using the second instance type on the AWS launcher screen that includes the extra tools. Otherwise you need to modify the installation script file as the wrong O/S is detected.

  •  5 ปีที่แล้ว

    monitor small, i not see

  • @Lukas-wg6pr
    @Lukas-wg6pr 5 ปีที่แล้ว

    1:50 LOL

  • @Koshala123
    @Koshala123 5 ปีที่แล้ว

    How much per month for Blynk server

    • @tombilan
      @tombilan  4 ปีที่แล้ว

      My EC2 charge is about $9 for my Blynk server.

  • @jaffersiddiq9365
    @jaffersiddiq9365 4 ปีที่แล้ว

    Do we get unlimited energy by this?

    • @tombilan
      @tombilan  4 ปีที่แล้ว +1

      Yes. You manage your own energy.

    • @jaffersiddiq9365
      @jaffersiddiq9365 4 ปีที่แล้ว

      @@tombilan hii sorry I'm disturbing you but ur the only person I guess who has made a video on this so .I needed ur help in this the video explanation is too fast .is there any way u could help me out ? It would be really helpful.

    • @jaffersiddiq9365
      @jaffersiddiq9365 4 ปีที่แล้ว

      I have created a blynk local server but I need it to be online so is there any other way?

    • @jaffersiddiq9365
      @jaffersiddiq9365 4 ปีที่แล้ว

      And do u know any website which offers free hosting ? Would be really helpfull if u reply thank you again