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 & - กีฬา
What a nice video guide. thank you for your help.
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
Not sure I fully understand what to do here, sine I am getting the exact same problem.
@@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.
monitor small, i not see
1:50 LOL
How much per month for Blynk server
My EC2 charge is about $9 for my Blynk server.
Do we get unlimited energy by this?
Yes. You manage your own energy.
@@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.
I have created a blynk local server but I need it to be online so is there any other way?
And do u know any website which offers free hosting ? Would be really helpfull if u reply thank you again